Skip to content

Commit

Permalink
📸 chore: update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmclin2 committed Jan 25, 2024
1 parent 8ca5977 commit 106580d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 780 deletions.
4 changes: 2 additions & 2 deletions docs/pro-editor/demos/realtimeCollaboration/SessionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SessionForm: React.FC<SessionFormProps> = ({ open, onCreate, onCanc
});
}}
>
<Form form={form} layout="vertical" name="form_in_modal">
<Form form={form} layout="vertical" name="form_in_modal" initialValues={{ color: '#1677FF' }}>
<Form.Item
name="name"
label="Name"
Expand All @@ -46,7 +46,7 @@ export const SessionForm: React.FC<SessionFormProps> = ({ open, onCreate, onCanc
label="Color"
rules={[{ required: true, message: 'Please select your color' }]}
>
<ColorPicker defaultValue="#1677FF" format="hex" />
<ColorPicker format="hex" />
</Form.Item>
</Form>
</Modal>
Expand Down
18 changes: 10 additions & 8 deletions docs/pro-editor/demos/realtimeCollaboration/demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ const Container = () => {

return (
<Provider createStore={createStore}>
<Button
type="primary"
onClick={() => {
setOpen(true);
}}
>
Join
</Button>
{user ? null : (
<Button
type="primary"
onClick={() => {
setOpen(true);
}}
>
Join
</Button>
)}
<SessionForm
open={open}
onCreate={onCreate}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@antv/dw-random": "^1.1.7",
"@babel/runtime": "^7.23.6",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/modifiers": "^6.0.1",
Expand Down
Loading

0 comments on commit 106580d

Please sign in to comment.