File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { getTitle } from '@/util/title';
77export type SCPageProperties = PropsWithChildren < {
88 title : string ;
99 hideTitle ?: boolean ;
10+ hideHeader ?: boolean ;
1011 subtext ?: ReactNode ;
1112 width ?: 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | 'lg' | 'md' | 'dynamic' ;
1213 suffix ?: ReactNode ;
@@ -17,6 +18,7 @@ export const SCPage: FC<SCPageProperties> = ({
1718 children,
1819 title,
1920 hideTitle,
21+ hideHeader,
2022 subtext,
2123 width = 'dynamic' ,
2224 suffix,
@@ -41,17 +43,19 @@ export const SCPage: FC<SCPageProperties> = ({
4143 className
4244 ) }
4345 >
44- < div className = "flex items-end justify-between" >
45- < div >
46- { ! hideTitle && < h1 className = "h1 pl-4" > { title } </ h1 > }
47- { subtext && (
48- < div className = "flex items-center gap-2 pl-4 text-sm" >
49- { subtext }
50- </ div >
51- ) }
46+ { ! hideHeader && (
47+ < div className = "flex items-end justify-between" >
48+ < div >
49+ { ! hideTitle && < h1 className = "h1 pl-4" > { title } </ h1 > }
50+ { subtext && (
51+ < div className = "flex items-center gap-2 pl-4 text-sm" >
52+ { subtext }
53+ </ div >
54+ ) }
55+ </ div >
56+ { suffix }
5257 </ div >
53- { suffix }
54- </ div >
58+ ) }
5559 { children }
5660 </ div >
5761 ) ;
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function RouteComponent() {
1313 const { data : teams } = useTeams ( ) ;
1414
1515 return (
16- < SCPage title = "Home" hideTitle >
16+ < SCPage title = "Home" hideHeader >
1717 < SiteList external />
1818 < TeamList />
1919 </ SCPage >
You can’t perform that action at this time.
0 commit comments