Skip to content

Commit

Permalink
Make CurrencySelector classes optional
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Dec 21, 2023
1 parent d25d1d3 commit 0d5726c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/CurrencySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type Currency = {
};

type Props = {
classes: { combobox: string };
classes?: { combobox?: string };
disabled: boolean;
value: Currency;
currencies: Currency[];
Expand Down Expand Up @@ -52,7 +52,9 @@ function CurrencySelector(props: Props) {
disabled={props.disabled}
onChange={props.onChange}
as="div"
className={`relative items-center grid grid-cols-[1fr_auto] field-container ${props.classes.combobox}`}
className={`relative items-center grid grid-cols-[1fr_auto] field-container ${
props.classes?.combobox || ""
}`}
>
<Combobox.Input
ref={inputRef}
Expand Down

0 comments on commit 0d5726c

Please sign in to comment.