Skip to content

Commit 04f0083

Browse files
allow for additional header styling
1 parent 5b34222 commit 04f0083

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/components/ui/sectionheader.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
type SectionHeaderProps = {
2+
className?: string
23
children: string
3-
light?: boolean
44
}
55

6-
export const SectionHeader = ({
7-
children,
8-
light = false,
9-
}: SectionHeaderProps) => {
6+
export const SectionHeader = ({ className, children }: SectionHeaderProps) => {
107
return (
118
<h2
12-
className={`self-start text-very-large font-semibold underline ${
13-
light ? 'text-zinc-50' : ''
14-
}`}
9+
className={`self-start text-very-large font-semibold underline ${className}`}
1510
>
1611
{children}
1712
</h2>

src/components/users/Users.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ 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 light>Most Active Users</SectionHeader>
65+
<SectionHeader className="text-zinc-50">
66+
Most Active Users
67+
</SectionHeader>
6668
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 w-full">
6769
<div className="md:col-span-2 grid grid-cols-1 sm:grid-cols-2 gap-4">
6870
{users.length > 0

0 commit comments

Comments
 (0)