-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pci-rancher): fix dash and date (#13026)
ref: TAPC-1615 Signed-off-by: Pierre-Philippe <[email protected]> Co-authored-by: CDS Translator Agent <[email protected]>
- Loading branch information
1 parent
813b00f
commit 8a8890b
Showing
4 changed files
with
45 additions
and
8 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
17 changes: 17 additions & 0 deletions
17
packages/manager/apps/pci-rancher/src/components/Table/NumberCell/NumberCell.component.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,17 @@ | ||
import React from 'react'; | ||
import { ODS_THEME_COLOR_INTENT } from '@ovhcloud/ods-common-theming'; | ||
import { OsdsText } from '@ovhcloud/ods-components/react'; | ||
import { Cell } from '@tanstack/react-table'; | ||
import { RancherService } from '@/types/api.type'; | ||
import '../Table.scss'; | ||
|
||
interface DisplayCellInterface { | ||
cell: Cell<RancherService, number>; | ||
} | ||
|
||
function DisplayCellNumber({ cell }: Readonly<DisplayCellInterface>) { | ||
const number = cell.renderValue(); | ||
return <OsdsText color={ODS_THEME_COLOR_INTENT.text}>{number}</OsdsText>; | ||
} | ||
|
||
export default DisplayCellNumber; |
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