Skip to content

Commit

Permalink
feat(manager-react-components): add iconAlignement to baseLayout
Browse files Browse the repository at this point in the history
ref: MANAGER-15976

Signed-off-by: Paul Dickerson <[email protected]>
  • Loading branch information
Paul Dickerson committed Jan 7, 2025
1 parent 90d9975 commit f9c5f91
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from 'react';
import { Headers, HeadersProps } from '../../content';
import { OdsText } from '@ovhcloud/ods-components/react';
import { LinkType, Links, Subtitle } from '../../typography';
import {
IconLinkAlignmentType,
LinkType,
Links,
Subtitle,
} from '../../typography';
import { PageLayout } from '../layout/layout.component';

export type BaseLayoutProps = React.PropsWithChildren<{
Expand All @@ -14,6 +19,7 @@ export type BaseLayoutProps = React.PropsWithChildren<{
backLinkLabel?: string;
hrefPrevious?: string;
tabs?: React.ReactElement;
iconAlignment?: IconLinkAlignmentType;
onClickReturn?: () => void;
}>;

Expand All @@ -29,6 +35,7 @@ export const BaseLayout = ({
children,
header,
tabs,
iconAlignment = IconLinkAlignmentType.right,
}: BaseLayoutProps) => (
<PageLayout>
<div>{breadcrumb}</div>
Expand All @@ -46,6 +53,7 @@ export const BaseLayout = ({
type={LinkType.back}
target="_self"
href={hrefPrevious}
iconAlignment={iconAlignment}
/>
</div>
)}
Expand Down

0 comments on commit f9c5f91

Please sign in to comment.