Anton Tranelis 9e6bcf1846
fix(source): update tailwind and daisyui (#196)
* removed daisy from config

* removed tw-elements artefact

* removed comments from tailwind config

* removed safelist

* migrated to tailwind4 and daisyui5

* deleted tailwind.config.js which is not eeded anymore

* 3.0.79

* version number

* fixed broken layouts

* more fixing

* more layout fixing

* tested theming

* small fixes

* adapt snapshots to changes

* package.json: add unit test update script

* more ui refactoring & theme controller

* ui improvements

* package-lock.json

* fix linting

* fixed tabs

* fix linting

* fixed typing

---------

Co-authored-by: mahula <lenzmath@posteo.de>
2025-04-25 16:03:42 +02:00

46 lines
1.3 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unsafe-return */
import { TextAreaInput } from '#components/Input'
import { ContactInfoForm } from '#components/Profile/Subcomponents/ContactInfoForm'
import { GroupSubheaderForm } from '#components/Profile/Subcomponents/GroupSubheaderForm'
import type { FormState } from '#types/FormState'
import type { Item } from '#types/Item'
export const OnepagerForm = ({
item,
state,
setState,
}: {
state: FormState
setState: React.Dispatch<React.SetStateAction<any>>
item: Item
}) => {
return (
<div className='tw:space-y-6 tw:mt-6'>
<GroupSubheaderForm state={state} setState={setState} item={item}></GroupSubheaderForm>
<ContactInfoForm state={state} setState={setState}></ContactInfoForm>
<div>
<label
htmlFor='description'
className='tw:block tw:text-sm tw:font-medium tw:text-gray-500 tw:mb-1'
>
Gruppenbeschreibung:
</label>
<TextAreaInput
placeholder='Beschreibung'
defaultValue={state.text || ''}
updateFormValue={(v) =>
setState((prevState) => ({
...prevState,
text: v,
}))
}
inputStyle='tw:h-48'
/>
</div>
</div>
)
}