Set size/color of custom table headers
This commit is contained in:
parent
d56799e519
commit
2ab48f5c97
1 changed files with 24 additions and 4 deletions
|
@ -41,10 +41,30 @@ const TextHeaderWrapper = styled(_Text)<{ position: Options['position'] }>`
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const headerPresets = {
|
const headerPresets = {
|
||||||
duration: <FiClock size={15} />,
|
duration: (
|
||||||
rowIndex: <AiOutlineNumber size={15} />,
|
<FiClock
|
||||||
userFavorite: <RiHeartLine size={15} />,
|
color="var(--ag-header-foreground-color)"
|
||||||
userRating: <RiStarLine size={15} />,
|
size="1em"
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
rowIndex: (
|
||||||
|
<AiOutlineNumber
|
||||||
|
color="var(--ag-header-foreground-color)"
|
||||||
|
size="1em"
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
userFavorite: (
|
||||||
|
<RiHeartLine
|
||||||
|
color="var(--ag-header-foreground-color)"
|
||||||
|
size="1em"
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
userRating: (
|
||||||
|
<RiStarLine
|
||||||
|
color="var(--ag-header-foreground-color)"
|
||||||
|
size="1em"
|
||||||
|
/>
|
||||||
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const GenericTableHeader = (
|
export const GenericTableHeader = (
|
||||||
|
|
Reference in a new issue