1
0
Fork 0

feat(shared): Ported account/bio to new inputs

This commit is contained in:
joostdecock 2023-08-25 17:59:47 +02:00
parent d568f42556
commit bef5d13c2e
3 changed files with 29 additions and 25 deletions

View file

@ -417,11 +417,13 @@ export const MarkdownInput = ({
placeholder, // The placeholder content
docs = false, // Docs to load, if any
id = '', // An id to tie the input to the label
labelBL = false, // Bottom-Left label
labelBR = false, // Bottom-Right label
}) => {
const [activeTab, setActiveTab] = useState('edit')
return (
<FormControl label={label} docs={docs} forId={id}>
<FormControl {...{ label, labelBL, labelBR, docs }} forId={id}>
<div className="tabs w-full">
{['edit', 'preview'].map((tab) => (
<Tab id={tab} key={tab} label={tab} {...{ activeTab, setActiveTab }} />