Skip to content

Commit 27c8143

Browse files
committed
update labels to reflect 'Data Files' and improve layout
1 parent f794db0 commit 27c8143

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/components/EditLayout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface LayoutProps {
5050
params: { id: string };
5151
}
5252

53-
const layoutList = ['metadata', 'access', 'charts', 'resources', 'publish'];
53+
const layoutList = ['metadata', 'resources', 'publish'];
5454

5555
export function EditLayout({ children, params }: LayoutProps) {
5656
// const { data } = useQuery([`dataset_layout_${params.id}`], () =>
@@ -177,7 +177,7 @@ const Navigation = ({
177177
// selected: pathItem === 'metadata',
178178
},
179179
{
180-
label: 'Resources',
180+
label: 'Data Files',
181181
id: 'resources',
182182
url: `/dashboard/${entityType}/${organization}/dataset/${id}/edit/resources`,
183183
// selected: pathItem === 'resources',

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/resources/components/ResourceListView.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,21 +215,22 @@ export const ResourceListView = ({ data, refetch }: ResourceListProps) => {
215215

216216
return (
217217
<div className="mt-3">
218-
<div className="my-8 flex items-center gap-6 px-4">
218+
<div className="my-8 flex justify-between flex-wrap items-center gap-6 ">
219+
<div className='flex items-center flex-wrap gap-2'>
219220
<Text>
220-
Showing {filteredRows.length} of {filteredRows.length} resources
221+
Showing {filteredRows.length} of {filteredRows.length} Data Files
221222
</Text>
222223
<SearchInput
223-
className="w-1/2 "
224224
placeholder="Search in Resources"
225225
label="Search"
226226
name="Search"
227227
onChange={(e) => handleSearchChange(e)}
228228
/>
229+
</div>
229230
<Dialog>
230231
<Dialog.Trigger>
231-
<Button size="medium" className=" mx-5">
232-
ADD NEW RESOURCE
232+
<Button size="medium" >
233+
ADD NEW DATA FILE
233234
</Button>
234235
</Dialog.Trigger>
235236
<Dialog.Content title={'Add New Resource'}>

0 commit comments

Comments
 (0)