From ae4d802d0a1d1567c0042535ecafd8811d2de8dd Mon Sep 17 00:00:00 2001 From: wrigh393 Date: Fri, 12 Mar 2021 12:58:24 -0500 Subject: [PATCH] Fixed links to other doc pages --- .../ItemHeaderView/ItemHeaderView.stories.mdx | 2 +- .../ItemMetadataView/ItemMetadataView.stories.mdx | 2 +- src/components/ItemTable/ItemTable.stories.mdx | 2 +- .../ItemTableAppBar/ItemTableAppBar.stories.mdx | 15 ++------------- .../ItemViewAppBar/ItemViewAppBar.stories.mdx | 2 +- src/components/LoginForm/LoginForm.stories.mdx | 2 +- .../MessageView/MessageView.stories.mdx | 2 +- .../PrivateRoute/PrivateRoute.stories.mdx | 2 +- 8 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/components/ItemHeaderView/ItemHeaderView.stories.mdx b/src/components/ItemHeaderView/ItemHeaderView.stories.mdx index 921b4e1..e0bc07a 100644 --- a/src/components/ItemHeaderView/ItemHeaderView.stories.mdx +++ b/src/components/ItemHeaderView/ItemHeaderView.stories.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import ItemHeaderView from './ItemHeaderView'; -The ItemHeader displays item metadata for items of selected queues and allows for filtering by field and opening an item by clicking. Items are passed in as a required parameter. It is to be used with the [ItemTableAppBar](/#/Components/ItemTableAppBar). +The ItemHeader displays item metadata for items of selected queues and allows for filtering by field and opening an item by clicking. Items are passed in as a required parameter. It is to be used with the [ItemTableAppBar](/?path=/docs/components-itemtableappbar--default-story). It is based on [react-table](https://react-table.tanstack.com/). diff --git a/src/components/ItemMetadataView/ItemMetadataView.stories.mdx b/src/components/ItemMetadataView/ItemMetadataView.stories.mdx index 714b3e9..9e99545 100644 --- a/src/components/ItemMetadataView/ItemMetadataView.stories.mdx +++ b/src/components/ItemMetadataView/ItemMetadataView.stories.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import ItemMetadataView from "./ItemMetadataView"; -The ItemMetadataView displays the metadata for an item as part of the [ItemView](/#/Components/ItemView). +The ItemMetadataView displays the metadata for an item as part of the [ItemView](?path=/docs/components-itemview--with-item). diff --git a/src/components/ItemTable/ItemTable.stories.mdx b/src/components/ItemTable/ItemTable.stories.mdx index c77eabc..e5afca6 100644 --- a/src/components/ItemTable/ItemTable.stories.mdx +++ b/src/components/ItemTable/ItemTable.stories.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import ItemTable from './ItemTable'; -The ItemTable is the primary view for webqueue2. It displays item metadata for items of selected queues and allows for filtering by field and opening an item by clicking. Items are passed in as a required parameter. It is to be used with the [ItemTableAppBar](/#/Components/ItemTableAppBar). +The ItemTable is the primary view for webqueue2. It displays item metadata for items of selected queues and allows for filtering by field and opening an item by clicking. Items are passed in as a required parameter. It is to be used with the [ItemTableAppBar](?path=/docs/components-itemtableappbar--default-story). It is based on [react-table](https://react-table.tanstack.com/). diff --git a/src/components/ItemTableAppBar/ItemTableAppBar.stories.mdx b/src/components/ItemTableAppBar/ItemTableAppBar.stories.mdx index cfa0d4f..a14d47e 100644 --- a/src/components/ItemTableAppBar/ItemTableAppBar.stories.mdx +++ b/src/components/ItemTableAppBar/ItemTableAppBar.stories.mdx @@ -3,13 +3,13 @@ import ItemTableAppBar from "./ItemTableAppBar"; import { ThemeProvider } from "@material-ui/styles"; -The ItemTableAppBar is the primary toolbar for the [ItemTable](/#/Components/ItemTable). It displays the application title and application wide actions. +The ItemTableAppBar is the primary toolbar for the [ItemTable](/?path=/docs/components-itemtable--loading). It displays the application title and application wide actions. export const Template = (props) => -Default +# Default - -DarkMode active - - - - {Template.bind({})} - - diff --git a/src/components/ItemViewAppBar/ItemViewAppBar.stories.mdx b/src/components/ItemViewAppBar/ItemViewAppBar.stories.mdx index 6a78e8e..ab8051c 100644 --- a/src/components/ItemViewAppBar/ItemViewAppBar.stories.mdx +++ b/src/components/ItemViewAppBar/ItemViewAppBar.stories.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import ItemViewAppBar from "./ItemViewAppBar"; -The ItemViewAppBar is the primary toolbar for the [ItemView](/#/Components/ItemView). It displays the item title and action for closing the sidebar. +The ItemViewAppBar is the primary toolbar for the [ItemView](/?path=/docs/components-itemview--with-item). It displays the item title and action for closing the sidebar. diff --git a/src/components/LoginForm/LoginForm.stories.mdx b/src/components/LoginForm/LoginForm.stories.mdx index 3e834c4..3b14b0f 100644 --- a/src/components/LoginForm/LoginForm.stories.mdx +++ b/src/components/LoginForm/LoginForm.stories.mdx @@ -7,7 +7,7 @@ The LoginForm acts as the only public facing page for the webqueue2. If any part export const Template = (props) => -# Today +# Default diff --git a/src/components/MessageView/MessageView.stories.mdx b/src/components/MessageView/MessageView.stories.mdx index f4d9618..d29b0d6 100644 --- a/src/components/MessageView/MessageView.stories.mdx +++ b/src/components/MessageView/MessageView.stories.mdx @@ -1,7 +1,7 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; import MessageView from "./MessageView"; -The MessageView displays an [EmailHeader](/#/Components/EmailHeader) and the content of a message. +The MessageView displays an [EmailHeader](/?path=/docs/components-emailheader--default-without-props) and the content of a message. diff --git a/src/components/PrivateRoute/PrivateRoute.stories.mdx b/src/components/PrivateRoute/PrivateRoute.stories.mdx index df5a58a..9990924 100644 --- a/src/components/PrivateRoute/PrivateRoute.stories.mdx +++ b/src/components/PrivateRoute/PrivateRoute.stories.mdx @@ -1,6 +1,6 @@ import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks'; -The PrivateRoute wraps [React Router](https://reactrouter.com/)'s [Route component](https://reactrouter.com/web/api/Route) and checks for authentication using [AuthProvider](#/Components/AuthProvider). If authentication is valid, the children of the PrivateRoute are rendered. Otherwise, the user is redirected to the login page. +The PrivateRoute wraps [React Router](https://reactrouter.com/)'s [Route component](https://reactrouter.com/web/api/Route) and checks for authentication using [AuthProvider](/?path=/docs/components-authprovider--page). If authentication is valid, the children of the PrivateRoute are rendered. Otherwise, the user is redirected to the login page.