feat: add onboarding with oldmarr import (#1606)

This commit is contained in:
Meier Lukas
2024-12-15 15:40:26 +01:00
committed by GitHub
parent 82ec77d2da
commit 6de74d9525
108 changed files with 6045 additions and 312 deletions

View File

@@ -17,6 +17,7 @@ export interface SelectWithCustomItemsProps<TSelectItem extends BaseSelectItem>
withAsterisk?: boolean;
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
w?: string;
}
type Props<TSelectItem extends BaseSelectItem> = SelectWithCustomItemsProps<TSelectItem> & {
@@ -30,6 +31,7 @@ export const SelectWithCustomItems = <TSelectItem extends BaseSelectItem>({
defaultValue,
placeholder,
SelectOption,
w,
...props
}: Props<TSelectItem>) => {
const combobox = useCombobox({
@@ -75,6 +77,7 @@ export const SelectWithCustomItems = <TSelectItem extends BaseSelectItem>({
onClick={toggle}
rightSectionPointerEvents="none"
multiline
w={w}
>
{selectedOption ? <SelectOption {...selectedOption} /> : <Input.Placeholder>{placeholder}</Input.Placeholder>}
</InputBase>