We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e5a08b commit fe64d91Copy full SHA for fe64d91
packages/bento-design-system/src/DateField/DateField.tsx
@@ -119,9 +119,9 @@ function RangeDateField(props: RangeDateFieldProps) {
119
export type DateFieldProps = SingleDateFieldProps | RangeDateFieldProps;
120
121
export function DateField(props: DateFieldProps) {
122
- // @ts-ignore
123
return match(props)
124
- .with({ type: "single" }, { type: undefined }, (props) => <SingleDateField {...props} />)
+ .with({ type: "single" }, (props) => <SingleDateField {...props} />)
+ .with({ type: undefined }, (props) => <SingleDateField {...props} />)
125
.with({ type: "range" }, (props) => <RangeDateField {...props} />)
126
.exhaustive();
127
}
0 commit comments