File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11type SectionHeaderProps = {
22 children : string
3+ light ?: boolean
34}
45
5- export const SectionHeader = ( { children } : SectionHeaderProps ) => {
6+ export const SectionHeader = ( {
7+ children,
8+ light = false ,
9+ } : SectionHeaderProps ) => {
610 return (
7- < h2 className = "self-start text-very-large font-semibold underline" >
11+ < h2
12+ className = { `self-start text-very-large font-semibold underline ${
13+ light ? 'text-zinc-50' : ''
14+ } `}
15+ >
816 { children }
917 </ h2 >
1018 )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const Users = () => {
6262 >
6363 < div className = "w-full flex flex-col items-center" >
6464 < div className = "w-full flex flex-col gap-0 sm:gap-4" >
65- < SectionHeader > Most Active Users</ SectionHeader >
65+ < SectionHeader light > Most Active Users</ SectionHeader >
6666 < div className = "grid grid-cols-1 md:grid-cols-3 gap-4 w-full" >
6767 < div className = "md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-4" >
6868 { users . length > 0
You can’t perform that action at this time.
0 commit comments