fix(lab): Keep docs view out of the lab
This commit is contained in:
parent
78aed4e207
commit
71e1d2b42d
8 changed files with 78 additions and 42 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue