fix: missing dropdown
This commit is contained in:
@@ -155,7 +155,7 @@ export interface Coordinates {
|
|||||||
const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => {
|
const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => {
|
||||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||||
const { socket } = useSocketStore();
|
const { socket } = useSocketStore();
|
||||||
const { setLastAction } = useGlobalInfoStore();
|
const { setLastAction, lastAction } = useGlobalInfoStore();
|
||||||
const { getText, getList } = useActionContext();
|
const { getText, getList } = useActionContext();
|
||||||
|
|
||||||
const scheduler = useRef(new RAFScheduler());
|
const scheduler = useRef(new RAFScheduler());
|
||||||
@@ -345,6 +345,17 @@ const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{state.dropdownInfo && (
|
||||||
|
<Dropdown
|
||||||
|
coordinates={state.dropdownInfo.coordinates}
|
||||||
|
selector={state.dropdownInfo.selector}
|
||||||
|
options={state.dropdownInfo.options}
|
||||||
|
onClose={() => dispatch({
|
||||||
|
type: 'BATCH_UPDATE',
|
||||||
|
payload: { dropdownInfo: null }
|
||||||
|
})}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{state.timePickerInfo && (
|
{state.timePickerInfo && (
|
||||||
<TimePicker
|
<TimePicker
|
||||||
coordinates={state.timePickerInfo.coordinates}
|
coordinates={state.timePickerInfo.coordinates}
|
||||||
|
|||||||
Reference in New Issue
Block a user