-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(manager-react-components): update filters components css
ref: MANAGER-15088 Signed-off-by: Alex Boungnaseng <[email protected]>
- Loading branch information
1 parent
2f9eca4
commit ad69087
Showing
5 changed files
with
50 additions
and
89 deletions.
There are no files selected for viewing
45 changes: 2 additions & 43 deletions
45
packages/manager-react-components/src/components/datagrid/datagrid-cursor.stories.tsx
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
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
43 changes: 43 additions & 0 deletions
43
packages/manager-react-components/src/components/datagrid/datagrid.mock.tsx
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,43 @@ | ||
import { DataGridTextCell } from './text-cell.component'; | ||
import { FilterCategories } from '@ovh-ux/manager-core-api'; | ||
Check failure on line 2 in packages/manager-react-components/src/components/datagrid/datagrid.mock.tsx GitHub Actions / Lint Code Base
|
||
|
||
export interface Item { | ||
label: string; | ||
price: number; | ||
} | ||
|
||
export const columsTmp = [ | ||
{ | ||
id: 'label', | ||
cell: (item: Item) => { | ||
return <DataGridTextCell>{item.label}</DataGridTextCell>; | ||
}, | ||
label: 'Label', | ||
}, | ||
{ | ||
id: 'price', | ||
cell: (item: Item) => { | ||
return <DataGridTextCell>{item.price} €</DataGridTextCell>; | ||
}, | ||
label: 'Price', | ||
}, | ||
]; | ||
|
||
export const columsFilters = [ | ||
{ | ||
id: 'label', | ||
cell: (item: Item) => { | ||
return <DataGridTextCell>{item.label}</DataGridTextCell>; | ||
}, | ||
label: 'Label', | ||
comparator: FilterCategories.String, | ||
}, | ||
{ | ||
id: 'price', | ||
cell: (item: Item) => { | ||
return <DataGridTextCell>{item.price} €</DataGridTextCell>; | ||
}, | ||
label: 'Price', | ||
comparator: FilterCategories.String, | ||
}, | ||
]; |
45 changes: 2 additions & 43 deletions
45
packages/manager-react-components/src/components/datagrid/datagrid.stories.tsx
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
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