Skip to content

Commit 98a7e54

Browse files
author
krina.sardhara
committed
fix(Remove configuration tab in routes): file upload - removal form custom routes
affects: @nodejs-code-generator/client
1 parent 791f20f commit 98a7e54

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

packages/client/src/container/CRUD/Routes/AddRoutes/AddRouteProvider.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const RouteTabIndexName = {
1414
[ROUTE_GENERATE_TYPE.MANUAL]: {
1515
0: 'Basic',
1616
1: 'Advance',
17-
2: 'Configuration',
18-
3: 'Query builder',
17+
// 2: 'Configuration',
18+
2: 'Query builder',
1919
},
2020
[ROUTE_GENERATE_TYPE.AUTO]: {
2121
get: {

packages/client/src/container/CRUD/Routes/AddRoutes/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { RouteTabIndexName, useAddRoute } from './AddRouteProvider';
1717
import { useAddToggle } from '../AddToggleProvider';
1818
import Basic from './Basic';
1919
import Advance from './Advance';
20-
import { Configuration } from './Configuration';
2120
import { useRoute } from '../RouteProvider';
2221
import { useBoolean } from '../../../../components/hooks';
2322
import { ModelPermission } from './ModelPermission';
@@ -119,20 +118,6 @@ export const AddRoutes = () => {
119118
<Advance />
120119
</div>
121120
</TabPanel>
122-
<TabPanel>
123-
<div className="px-5 overflow-auto h-full">
124-
<Controller
125-
control={control}
126-
name="uploads"
127-
defaultValue={editRouteData?.fileUpload?.uploads[0]}
128-
render={(controlProps) => (
129-
<Configuration
130-
{...controlProps}
131-
/>
132-
)}
133-
/>
134-
</div>
135-
</TabPanel>
136121
<TabPanel>
137122
<Controller
138123
control={control}

0 commit comments

Comments
 (0)