File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
sdks/js/packages/core/react Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1- import { Flex , Text } from '@raystack/apsara' ;
1+ import { Flex } from '@raystack/apsara' ;
22import { PropsWithChildren } from 'react' ;
3- import styles from './layout.module.css' ;
3+ import { PageHeader } from '../common/page-header' ;
4+ import sharedStyles from '../organization/styles.module.css' ;
45
56interface LayoutProps {
67 title : string ;
8+ description ?: string ;
79}
810
9- export function Layout ( { title, children } : PropsWithChildren < LayoutProps > ) {
11+ export function Layout ( { title, description , children } : PropsWithChildren < LayoutProps > ) {
1012 return (
1113 < Flex direction = "column" style = { { width : '100%' } } >
12- < Flex className = { styles . header } >
13- < Text size = "large" > { title } </ Text >
14- </ Flex >
15- < Flex direction = "column" gap = { 9 } className = { styles . container } >
16- { children }
14+ < Flex direction = "column" className = { sharedStyles . container } >
15+ < Flex direction = "row" justify = "between" align = "center" className = { sharedStyles . header } >
16+ < PageHeader title = { title } description = { description } />
17+ </ Flex >
18+ < Flex direction = "column" gap = { 9 } >
19+ { children }
20+ </ Flex >
1721 </ Flex >
1822 </ Flex >
1923 ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export { useBillingPermission } from './hooks/useBillingPermission';
2222export { useConnectQueryPolling } from './hooks/useConnectQueryPolling' ;
2323export { usePreferences } from './hooks/usePreferences' ;
2424export { Layout } from './components/Layout' ;
25+ export { PageHeader } from './components/common/page-header' ;
2526
2627export type {
2728 FrontierClientOptions ,
You can’t perform that action at this time.
0 commit comments