File tree 3 files changed +0
-67
lines changed
examples/data-provider-supabase/src/pages/posts
3 files changed +0
-67
lines changed Original file line number Diff line number Diff line change @@ -43,32 +43,6 @@ export const PostCreate: React.FC<IResourceComponentsProps> = () => {
43
43
>
44
44
< Select { ...categorySelectProps } />
45
45
</ 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 >
72
46
< Form . Item
73
47
label = "Content"
74
48
name = "content"
Original file line number Diff line number Diff line change @@ -86,32 +86,6 @@ export const PostEdit: React.FC<IResourceComponentsProps> = () => {
86
86
] }
87
87
>
88
88
< 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
- />
115
89
</ Form . Item >
116
90
< Form . Item
117
91
label = "Content"
Original file line number Diff line number Diff line change @@ -65,21 +65,6 @@ export const PostList: React.FC<IResourceComponentsProps> = () => {
65
65
</ FilterDropdown >
66
66
) }
67
67
/>
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
- />
83
68
< Table . Column < IPost >
84
69
title = "Actions"
85
70
dataIndex = "actions"
You can’t perform that action at this time.
0 commit comments