-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(storage-browser): move LOCATION_DETAIL_VIEW_HEADERS to constants …
…file (#6022)
- Loading branch information
1 parent
98af62e
commit 7f09467
Showing
5 changed files
with
32 additions
and
24 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...nents/StorageBrowser/views/LocationDetailView/getLocationDetailViewTableData/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { LocationDetailViewHeaders } from './types'; | ||
|
||
export const LOCATION_DETAIL_VIEW_HEADERS: LocationDetailViewHeaders = [ | ||
{ key: 'checkbox', type: 'text', content: { text: '' } }, | ||
{ key: 'name', type: 'sort', content: { label: 'Name' } }, | ||
{ key: 'type', type: 'sort', content: { label: 'Type' } }, | ||
{ key: 'last-modified', type: 'sort', content: { label: 'Last Modified' } }, | ||
{ key: 'size', type: 'sort', content: { label: 'Size' } }, | ||
{ key: 'download', type: 'text', content: { text: '' } }, | ||
]; |
6 changes: 4 additions & 2 deletions
6
...orageBrowser/views/LocationDetailView/getLocationDetailViewTableData/getFileRowContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ageBrowser/views/LocationDetailView/getLocationDetailViewTableData/getFolderRowContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 2 additions & 21 deletions
23
...views/LocationDetailView/getLocationDetailViewTableData/getLocationDetailViewTableData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...omponents/StorageBrowser/views/LocationDetailView/getLocationDetailViewTableData/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { DataTableProps } from '../../../composables/DataTable'; | ||
import { WithKey } from '../../../components/types'; | ||
|
||
export type HeaderKeys = | ||
| 'checkbox' | ||
| 'name' | ||
| 'type' | ||
| 'last-modified' | ||
| 'size' | ||
| 'download'; | ||
|
||
export type LocationDetailViewHeaders = WithKey< | ||
DataTableProps['headers'][number], | ||
HeaderKeys | ||
>[]; |