Skip to content

Commit

Permalink
Try to typescript highlighting, still failing for tsx
Browse files Browse the repository at this point in the history
CHANGELOG_BEGIN
CHANGELOG_END
  • Loading branch information
rohanjr committed Feb 24, 2020
1 parent b38ec15 commit d8f56d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/getting-started/app-architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ We can see examples of this in the ``MainView`` component.
This is the React component that enables the main functionality of the app.

.. literalinclude:: code/ui-before/MainView.tsx
:language: typescript
:start-after: // USERS_BEGIN
:end-before: // USERS_END

Expand All @@ -104,6 +105,7 @@ This is because the observers of a ``User`` contract are exactly the user's frie
Another example is how we exercise the ``AddFriend`` choice of the ``User`` template.

.. literalinclude:: code/ui-before/MainView.tsx
:language: typescript
:start-after: // ADDFRIEND_BEGIN
:end-before: // ADDFRIEND_END

Expand All @@ -114,6 +116,7 @@ For example, ``addFriend`` is passed to the ``UserList`` component as an argumen
This gets triggered when you click the button next to a user's name in the "Network" panel.

.. literalinclude:: code/ui-before/MainView.tsx
:language: typescript
:start-after: // USERLIST_BEGIN
:end-before: // USERLIST_END

Expand Down
1 change: 1 addition & 0 deletions docs/source/getting-started/first-feature.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ The ``MainView`` component composes the different subcomponents (for our friends
We first import our two new components.

.. literalinclude:: code/ui-after/MainView.tsx
:language: typescript
:start-after: // IMPORTS_BEGIN
:end-before: // IMPORTS_END

Expand Down

0 comments on commit d8f56d6

Please sign in to comment.