Skip to content

Commit 1fc63e4

Browse files
authored
Revert "fix: supabase example error (#5687)" (#5698)
This reverts commit 207ce66.
1 parent 207ce66 commit 1fc63e4

File tree

3 files changed

+0
-67
lines changed

3 files changed

+0
-67
lines changed

examples/data-provider-supabase/src/pages/posts/create.tsx

-26
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,6 @@ export const PostCreate: React.FC<IResourceComponentsProps> = () => {
4343
>
4444
<Select {...categorySelectProps} />
4545
</Form.Item>
46-
<Form.Item
47-
label="Status"
48-
name="status"
49-
rules={[
50-
{
51-
required: true,
52-
},
53-
]}
54-
>
55-
<Select
56-
options={[
57-
{
58-
label: "Published",
59-
value: "published",
60-
},
61-
{
62-
label: "Draft",
63-
value: "draft",
64-
},
65-
{
66-
label: "Rejected",
67-
value: "rejected",
68-
},
69-
]}
70-
/>
71-
</Form.Item>
7246
<Form.Item
7347
label="Content"
7448
name="content"

examples/data-provider-supabase/src/pages/posts/edit.tsx

-26
Original file line numberDiff line numberDiff line change
@@ -86,32 +86,6 @@ export const PostEdit: React.FC<IResourceComponentsProps> = () => {
8686
]}
8787
>
8888
<Select {...categorySelectProps} />
89-
</Form.Item>
90-
<Form.Item
91-
label="Status"
92-
name="status"
93-
rules={[
94-
{
95-
required: true,
96-
},
97-
]}
98-
>
99-
<Select
100-
options={[
101-
{
102-
label: "Published",
103-
value: "published",
104-
},
105-
{
106-
label: "Draft",
107-
value: "draft",
108-
},
109-
{
110-
label: "Rejected",
111-
value: "rejected",
112-
},
113-
]}
114-
/>
11589
</Form.Item>
11690
<Form.Item
11791
label="Content"

examples/data-provider-supabase/src/pages/posts/list.tsx

-15
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,6 @@ export const PostList: React.FC<IResourceComponentsProps> = () => {
6565
</FilterDropdown>
6666
)}
6767
/>
68-
<Table.Column
69-
dataIndex="status"
70-
title="Status"
71-
render={(value: string) => <TagField value={value} />}
72-
defaultFilteredValue={getDefaultFilter("status", filters)}
73-
filterDropdown={(props) => (
74-
<FilterDropdown {...props}>
75-
<Radio.Group>
76-
<Radio value="published">Published</Radio>
77-
<Radio value="draft">Draft</Radio>
78-
<Radio value="rejected">Rejected</Radio>
79-
</Radio.Group>
80-
</FilterDropdown>
81-
)}
82-
/>
8368
<Table.Column<IPost>
8469
title="Actions"
8570
dataIndex="actions"

0 commit comments

Comments
 (0)