1
0
Fork 0

fix(org): Renamed import

This commit is contained in:
Joost De Cock 2022-12-24 22:52:19 +01:00
parent 4af5b9bc9d
commit dae5b19de7

View file

@ -1,5 +1,5 @@
import React from 'react'
import { capitalize } from 'shared/utils.js'
import { capitalize } from 'shared/utils.mjs'
import { getConfig } from 'shared/designs/index.js'
import Popout from 'shared/components/popout.js'
import { useTranslation } from 'next-i18next'
@ -21,25 +21,19 @@ const PatternDocs = ({ pattern=false }) => {
{config.deprecated && (
<Popout note>
<h5>{t('thingIsDeprecated', { thing: capitalize(pattern) })}</h5>
<p>
{t('weRecommendThingInstead', { thing: capitalize(config.deprecated)})}
</p>
<p>{t('weRecommendThingInstead', { thing: capitalize(config.deprecated) })}</p>
<Design design={pattern} />
</Popout>
)}
<button className="btn btn-primary btn-large btn-contained"
href={`/create/${pattern}`}
>
<button className="btn btn-primary btn-large btn-contained" href={`/create/${pattern}`}>
{t('newThing', { thing: pattern })}
</button>
<p>{t(`patterns.${pattern}.description`)}</p>
<PatternMeasurements pattern={pattern}
before={<h2>{t('common:requiredMeasurements')}</h2>} />
<PatternMeasurements pattern={pattern} before={<h2>{t('common:requiredMeasurements')}</h2>} />
<PatternOptions pattern={pattern}
before={<h2>{t('common:patternOptions')}</h2>} />
<PatternOptions pattern={pattern} before={<h2>{t('common:patternOptions')}</h2>} />
<h2>{t('common:patternInstructions')}</h2>
<ul className="links">