diff --git a/sites/org/components/layouts/post.mjs b/sites/org/components/layouts/post.mjs index a16afde7dba..b60e496f3aa 100644 --- a/sites/org/components/layouts/post.mjs +++ b/sites/org/components/layouts/post.mjs @@ -1,3 +1,7 @@ +import { useContext, useState } from 'react' +import { ModalContext } from 'shared/context/modal-context.mjs' +import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs' +import { ModalWrapper } from 'shared/components/wrappers/modal.mjs' import { cloudflareImageUrl, nsMerge } from 'shared/utils.mjs' import { makers } from 'site/prebuild/makers.mjs' // Components @@ -6,6 +10,7 @@ import { Lightbox } from 'shared/components/lightbox.mjs' import { ImageWrapper } from 'shared/components/wrappers/img.mjs' import { TimeAgo, ns as timeagoNs } from 'shared/components/timeago/index.mjs' import { useTranslation } from 'next-i18next' +import { Link } from 'shared/components/link.mjs' import { BaseLayout, BaseLayoutLeft, @@ -23,8 +28,12 @@ import { Toc, ns as tocNs } from 'shared/components/mdx/toc.mjs' import { PrevNext } from 'shared/components/prev-next.mjs' import { Tag } from 'shared/components/tag.mjs' import { UserProfile } from 'shared/components/user-profile.mjs' +import { useAccount } from 'shared/hooks/use-account.mjs' +import { useBackend } from 'shared/hooks/use-backend.mjs' +import { MarkdownInput } from 'shared/components/inputs.mjs' +import { userCard } from 'shared/components/support/support.mjs' -export const ns = nsMerge(navNs, tocNs, timeagoNs, 'docs') +export const ns = nsMerge(navNs, tocNs, timeagoNs, 'docs', 'account') const PostMeta = ({ frontmatter, t }) => (
Thank you for helping out.
+
+ We created a new issue for this.
+
+ If you would like to help out even more, the issue describes what file to change and
+ what change needs to be made.
+
+ You can do this via the GitHub website, so it is a great way to make a first + contribution if you are new to open source. +
+- This post has not (yet) been associated with a FreeSewing account. Please help us assign - proper credit: +const ClaimAuthor = ({ t, type }) => ( +
Great, but it looks like you are not currently logged in.
+Please log in and then claim this post so we know what account to associate it with.
++ + Sign In +
-Awesome. Please let us know below who it was by providing either:
+When you are done, click the button below to submit.
++ +
+ > + ) +} + +const ClaimThisPost = ({ t, type, dir }) => { + const { setModal } = useContext(ModalContext) + const { account } = useAccount() + const backend = useBackend() + const { setLoadingStatus } = useContext(LoadingStatusContext) + + return ( ++ This post has not (yet) been associated with a FreeSewing account. Please help us assign + proper credit: +
+