+ {description} +
+ )} +{description}
} ++ {itemDescription} +
+ )} +{error}
} + > +) diff --git a/apps/design-system/src/components/Atoms/Form/Checkbox/Checkboxes.ui.test.tsx b/apps/design-system/src/components/Atoms/Form/Checkbox/Checkboxes.ui.test.tsx new file mode 100644 index 00000000..75abaff9 --- /dev/null +++ b/apps/design-system/src/components/Atoms/Form/Checkbox/Checkboxes.ui.test.tsx @@ -0,0 +1,42 @@ +import { render, screen } from '@testing-library/react' + +import { Checkboxes } from './Checkboxes' + +describe('atoms/Checkboxes', () => { + describe('render', () => { + it('should render Checkboxes', () => { + // when ... we rendering component + render( +{error}
} + > + ) +} diff --git a/apps/design-system/src/components/Atoms/Form/Input/TextField.ui.test.tsx b/apps/design-system/src/components/Atoms/Form/Input/TextField.ui.test.tsx new file mode 100644 index 00000000..f127e76c --- /dev/null +++ b/apps/design-system/src/components/Atoms/Form/Input/TextField.ui.test.tsx @@ -0,0 +1,16 @@ +import { render, screen } from '@testing-library/react' + +import { TextField } from './TextField' + +describe('atoms/TextField', () => { + describe('render', () => { + it('should render TextField', () => { + // when ... we rendering component + render({error}
} + {!isEmpty(description) && ( +{description}
+ )} + > + ) +} diff --git a/apps/design-system/src/components/Atoms/Form/Textarea/index.ts b/apps/design-system/src/components/Atoms/Form/Textarea/index.ts new file mode 100644 index 00000000..c728b61d --- /dev/null +++ b/apps/design-system/src/components/Atoms/Form/Textarea/index.ts @@ -0,0 +1 @@ +export { TextareaField } from './TextareaField' diff --git a/apps/design-system/src/components/Atoms/Form/index.ts b/apps/design-system/src/components/Atoms/Form/index.ts new file mode 100644 index 00000000..e3607b7a --- /dev/null +++ b/apps/design-system/src/components/Atoms/Form/index.ts @@ -0,0 +1,3 @@ +export { Checkbox, Checkboxes } from './Checkbox' +export { TextField } from './Input' +export { TextareaField } from './Textarea' diff --git a/apps/design-system/src/index.ts b/apps/design-system/src/index.ts index af808d10..5179257f 100644 --- a/apps/design-system/src/index.ts +++ b/apps/design-system/src/index.ts @@ -1,6 +1,7 @@ export { Button } from './components/Atoms/Button' export { Card } from './components/Atoms/Card' export { Date } from './components/Atoms/Date' +export { Checkbox, Checkboxes, TextField, TextareaField } from './components/Atoms/Form' export { Grid, GridRow } from './components/Atoms/Grid' export { Heading } from './components/Atoms/Heading' export { HeadingWithTooltip } from './components/Atoms/HeadingWithTooltip' diff --git a/apps/envited.ascs.digital/app/dashboard/profile/page.tsx b/apps/envited.ascs.digital/app/dashboard/profile/page.tsx index 2c5f0e0c..4a81cff0 100644 --- a/apps/envited.ascs.digital/app/dashboard/profile/page.tsx +++ b/apps/envited.ascs.digital/app/dashboard/profile/page.tsx @@ -1,3 +1,11 @@ +import { getBusinessCategories, getProfile } from '../../../common/serverActions' +import { Profile } from '../../../modules/Profile' + export default async function Index() { - return 'Profile' + const profile = await getProfile('testcompany-gmbh') + const memberCategories = await getBusinessCategories() + + return