-
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
8bec787
commit be962b0
Showing
7 changed files
with
125 additions
and
158 deletions.
There are no files selected for viewing
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 { FilterCategories } from '@ovh-ux/manager-core-api'; | ||
import { DataGridTextCell } from './text-cell.component'; | ||
|
||
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
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
Oops, something went wrong.