Skip to content

Commit

Permalink
refactor(datepicker): use css instead of style
Browse files Browse the repository at this point in the history
  • Loading branch information
msyavuz committed Feb 3, 2025
1 parent f5c3f58 commit 171c5cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion superset-frontend/src/components/DatePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@
* under the License.
*/
import { DatePicker as AntdDatePicker, DatePickerProps } from 'antd-v5';
import { css } from '@superset-ui/core';

export const DatePicker = (props: DatePickerProps) => (
<AntdDatePicker style={{ width: '100%' }} {...props} />
<AntdDatePicker
css={css`
width: 100%;
`}
{...props}
/>
);

// Disable ESLint rule to allow tsc to infer proper type for RangePicker.
Expand Down

0 comments on commit 171c5cd

Please sign in to comment.