mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
* 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>
39 lines
984 B
TypeScript
39 lines
984 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
import { TextInput } from '#components/Input'
|
|
|
|
import type { FormState } from '#types/FormState'
|
|
|
|
export const CrowdfundingForm = ({
|
|
state,
|
|
setState,
|
|
}: {
|
|
state: FormState
|
|
setState: React.Dispatch<React.SetStateAction<any>>
|
|
}) => {
|
|
return (
|
|
<div className='tw:mt-4 tw:space-y-4'>
|
|
<div>
|
|
<label
|
|
htmlFor='OpenCollectiveSlug'
|
|
className='tw:block tw:text-sm tw:font-medium tw:text-gray-500 tw:mb-1'
|
|
>
|
|
Open Collective Slug:
|
|
</label>
|
|
<TextInput
|
|
placeholder='Open Collective Slug'
|
|
type='text'
|
|
required={false}
|
|
defaultValue={state.openCollectiveSlug}
|
|
updateFormValue={(v) =>
|
|
setState((prevState) => ({
|
|
...prevState,
|
|
openCollectiveSlug: v,
|
|
}))
|
|
}
|
|
/>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|