Skip to content

Commit

Permalink
fix: DatePicker and ColorPicker not working without react import
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Mar 20, 2024
1 parent 478ef0c commit e119a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipyantd/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class DatePicker(ipyreact.ValueWidget):
# _module = traitlets.Unicode("antd").tag(sync=True)
# _type = traitlets.Unicode("DatePicker").tag(sync=True)
_esm = """
import React from "react";
import {DatePicker} from "antd";
import dayjs from "https://esm.sh/[email protected]"
Expand All @@ -71,6 +72,7 @@ class DatePicker(ipyreact.ValueWidget):

class ColorPicker(ipyreact.ValueWidget):
_esm = """
import React from "react";
import {ColorPicker} from "antd";
export default ({value, setValue, children, ...rest}) => {
Expand Down

0 comments on commit e119a12

Please sign in to comment.