1
0
Fork 0

fix(lab): Keep docs view out of the lab

This commit is contained in:
Joost De Cock 2023-10-03 08:44:50 +02:00
parent 78aed4e207
commit 71e1d2b42d
8 changed files with 78 additions and 42 deletions

View file

@ -5,6 +5,7 @@ import { useTranslation } from 'next-i18next'
import { DesignInfo } from 'shared/components/designs/info.mjs'
import { Popout } from 'shared/components/popout/index.mjs'
import { PageLink } from 'shared/components/link.mjs'
import { siteConfig } from 'site/site.config.mjs'
export const ns = ['workbench', 'designs']
@ -12,6 +13,18 @@ export const DocsView = ({ design }) => {
// Hooks
const { t } = useTranslation(ns)
if (siteConfig.site !== 'FreeSewing.org')
return (
<div className="max-w-2xl m-auto">
<Popout note>
<h5>{t('workbench:noInlineDocs')}</h5>
<p>
<PageLink txt={t('workbench:noInlineDocsDesc')} href="https://freesewing.org/" />
</p>
</Popout>
</div>
)
return (
<div className="m-auto mt-8 max-w-7xl px-4 mb-8">
<Popout tip compact>