-
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.
ref: MANAGER-15416 Signed-off-by: Nicolas Pierre-charles <[email protected]>
- Loading branch information
Nicolas Pierre-charles
committed
Dec 13, 2024
1 parent
9506324
commit 46dfde3
Showing
122 changed files
with
2,810 additions
and
3,267 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
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
16 changes: 7 additions & 9 deletions
16
...s/manager-react-components/src/components/content/dashboard-tile/tile-block.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 |
---|---|---|
@@ -1,19 +1,17 @@ | ||
import React from 'react'; | ||
import { ODS_TEXT_PRESET } from '@ovhcloud/ods-components'; | ||
import { OdsText } from '@ovhcloud/ods-components/react'; | ||
|
||
export type TileBlockProps = React.PropsWithChildren<{ | ||
label?: string; | ||
label?: React.ReactNode; | ||
}>; | ||
|
||
export const TileBlock: React.FC<React.PropsWithChildren<TileBlockProps>> = ({ | ||
label, | ||
children, | ||
}) => ( | ||
<dl className="flex flex-col gap-y-[8px] my-0"> | ||
<dt className="tile-block-title m-0 text-[--ods-color-heading] text-[16px] leading-[16px] font-semibold"> | ||
{label} | ||
</dt> | ||
<dd className="tile-block-description m-0 text-[--ods-color-text] text-[16px] leading-[16px] min-h-[16px]"> | ||
{children} | ||
</dd> | ||
</dl> | ||
<div className="grid gap-1"> | ||
<OdsText preset={ODS_TEXT_PRESET.heading6}>{label}</OdsText> | ||
<OdsText preset={ODS_TEXT_PRESET.paragraph}>{children}</OdsText> | ||
</div> | ||
); |
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
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.