diff --git a/app/components/AsciidocBlocks/Document.tsx b/app/components/AsciidocBlocks/Document.tsx index de189fb..7a73802 100644 --- a/app/components/AsciidocBlocks/Document.tsx +++ b/app/components/AsciidocBlocks/Document.tsx @@ -5,15 +5,23 @@ * * Copyright Oxide Computer Company */ +import { useDelegatedReactRouterLinks } from '@oxide/design-system/components/dist' import { Content, type DocumentBlock } from '@oxide/react-asciidoc' +import { useRef } from 'react' -const CustomDocument = ({ document }: { document: DocumentBlock }) => ( -
- -
-) +const CustomDocument = ({ document }: { document: DocumentBlock }) => { + let ref = useRef(null) + useDelegatedReactRouterLinks(ref, document.title) + + return ( +
+ +
+ ) +} export { CustomDocument } diff --git a/app/components/Spinner.tsx b/app/components/Spinner.tsx deleted file mode 100644 index 5142486..0000000 --- a/app/components/Spinner.tsx +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, you can obtain one at https://mozilla.org/MPL/2.0/. - * - * Copyright Oxide Computer Company - */ - -import cn from 'classnames' - -const Spinner = ({ className }: { className?: string }) => { - const frameSize = 12 - const center = 6 - const radius = 5 - const strokeWidth = 2 - return ( - - - - - ) -} - -export default Spinner diff --git a/app/components/rfd/RfdDiscussionDialog.tsx b/app/components/rfd/RfdDiscussionDialog.tsx index cf0b9f1..a8250a8 100644 --- a/app/components/rfd/RfdDiscussionDialog.tsx +++ b/app/components/rfd/RfdDiscussionDialog.tsx @@ -13,6 +13,7 @@ import { useDialogStore, type DialogStore, } from '@ariakit/react' +import { Spinner } from '@oxide/design-system/components/dist' import cn from 'classnames' import dayjs from 'dayjs' import relativeTime from 'dayjs/plugin/relativeTime' @@ -30,7 +31,6 @@ import type { } from '~/services/rfd.server' import { GotoIcon } from '../CustomIcons' -import Spinner from '../Spinner' import { CommentThreadBlock, matchCommentToBlock } from './RfdInlineComments' import { calcOffset } from './RfdPreview' @@ -353,14 +353,14 @@ const DiscussionReview = ({
{data.review.user.login}
-
+
reviewed on