diff --git a/docs/todo/0-kickstart.md b/docs/todo/0-kickstart.md index b366b9649..aeb1873a6 100644 --- a/docs/todo/0-kickstart.md +++ b/docs/todo/0-kickstart.md @@ -19,7 +19,7 @@ Use this file when you’re not sure what to do next, or you want a quick “mak Run from `frontends/nextjs/`: -From repo root: `cd frontends/nextjs` +From repo root: `cd frontends/nextjs` (or from `docs/todo/`: `cd ../../frontends/nextjs`) - [ ] `npm ci` (or `npm install`) - [ ] `npm run typecheck` diff --git a/frontends/nextjs/src/components/molecules/Select.tsx b/frontends/nextjs/src/components/molecules/Select.tsx index 67ba3a245..2da8ff406 100644 --- a/frontends/nextjs/src/components/molecules/Select.tsx +++ b/frontends/nextjs/src/components/molecules/Select.tsx @@ -14,20 +14,21 @@ import { import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown' // Select wrapper with FormControl -export interface SelectProps extends Omit { +export interface SelectProps extends Omit, 'onChange'> { onValueChange?: (value: string) => void helperText?: ReactNode } const Select = forwardRef( - ({ onValueChange, value, defaultValue, label, error, helperText, children, sx, ...props }, ref) => { + ({ onValueChange, value, defaultValue, label, error, helperText, children, sx, variant = 'outlined', ...props }, ref) => { return ( {label && {label}} - value={value} defaultValue={defaultValue} label={label} + variant={variant} onChange={(e) => onValueChange?.(e.target.value as string)} IconComponent={KeyboardArrowDownIcon} {...props}