Esteves Enzo commited on
Commit
570e2d9
1 Parent(s): 03ce1cf

add post function

Browse files
components/editor/main/request.tsx CHANGED
@@ -81,6 +81,7 @@ export const Request = ({
81
  <Toggle
82
  checked={b.defaultValue}
83
  label={b.key}
 
84
  onChange={(e) => setBodyForm({ ...bodyForm, [b.key]: e })}
85
  />
86
  </div>
@@ -92,6 +93,7 @@ export const Request = ({
92
  ] as string) ?? (b.defaultValue as string)
93
  }
94
  label={b.key}
 
95
  placeholder="value"
96
  onChange={(e) => setBodyForm({ ...bodyForm, [b.key]: e })}
97
  />
 
81
  <Toggle
82
  checked={b.defaultValue}
83
  label={b.key}
84
+ // subLabel={b.label}
85
  onChange={(e) => setBodyForm({ ...bodyForm, [b.key]: e })}
86
  />
87
  </div>
 
93
  ] as string) ?? (b.defaultValue as string)
94
  }
95
  label={b.key}
96
+ subLabel={b.label}
97
  placeholder="value"
98
  onChange={(e) => setBodyForm({ ...bodyForm, [b.key]: e })}
99
  />
components/input/input.tsx CHANGED
@@ -6,12 +6,14 @@ interface Props {
6
  placeholder?: string;
7
  label?: string;
8
  onlyAlphaNumeric?: boolean;
 
9
  }
10
 
11
  export const TextInput: React.FC<Props> = ({
12
  value,
13
  onChange,
14
  placeholder,
 
15
  onlyAlphaNumeric = true,
16
  label,
17
  }) => {
@@ -29,6 +31,7 @@ export const TextInput: React.FC<Props> = ({
29
  <label className="text-slate-400 text-sm font-medium capitalize">
30
  {label}:
31
  </label>
 
32
  <input
33
  type="text"
34
  value={value}
 
6
  placeholder?: string;
7
  label?: string;
8
  onlyAlphaNumeric?: boolean;
9
+ subLabel?: string;
10
  }
11
 
12
  export const TextInput: React.FC<Props> = ({
13
  value,
14
  onChange,
15
  placeholder,
16
+ subLabel,
17
  onlyAlphaNumeric = true,
18
  label,
19
  }) => {
 
31
  <label className="text-slate-400 text-sm font-medium capitalize">
32
  {label}:
33
  </label>
34
+ {/* {subLabel && <p className="text-slate-600 text-xs">{subLabel}</p>} */}
35
  <input
36
  type="text"
37
  value={value}
utils/datas/api_collections.ts CHANGED
@@ -92,6 +92,10 @@ export const API_COLLECTIONS: Array<ApiCollection> = [{
92
  required: true,
93
  key: "organization",
94
  },
 
 
 
 
95
  {
96
  label: "Whether the repo is private",
97
  required: true,
 
92
  required: true,
93
  key: "organization",
94
  },
95
+ {
96
+ label: "SDK (if type is space)",
97
+ key: "sdk",
98
+ },
99
  {
100
  label: "Whether the repo is private",
101
  required: true,