File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,30 @@ interface ButtonProps {
5
5
children : ReactNode
6
6
className ?: string
7
7
href ?: string
8
+ disabled ?: boolean
8
9
}
9
10
10
- function ButtonConf ( { href, className, children } : ButtonProps ) : ReactElement {
11
- return (
11
+ function ButtonConf ( {
12
+ href,
13
+ className,
14
+ children,
15
+ disabled,
16
+ } : ButtonProps ) : ReactElement {
17
+ return disabled ? (
18
+ < span
19
+ className = { clsx (
20
+ "cursor-default transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 rounded text-sm sm:text-base whitespace-nowrap" ,
21
+ "bg-gray-400 text-white font-medium" ,
22
+ className
23
+ ) }
24
+ >
25
+ { children }
26
+ </ span >
27
+ ) : (
12
28
< a
29
+ aria-disabled = { disabled }
13
30
className = { clsx (
14
- "cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 no-underline hover:no-underline focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base whitespace-nowrap" ,
31
+ "cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base whitespace-nowrap" ,
15
32
"bg-[--rhodamine] text-white font-medium" ,
16
33
className
17
34
) }
Original file line number Diff line number Diff line change @@ -817,8 +817,8 @@ const faq: Array<{ id: string; title: string; contents: ReactNode }> = [
817
817
< li > Application Deadline — Friday, July 21, 2023 11:59 PM PST</ li >
818
818
< li > Notifications — Week of August 7, 2023</ li >
819
819
</ ul >
820
- < ButtonConf href = "https://forms.gle/PwgWSTJ872Pce9XW6" >
821
- Apply for a Scholarship
820
+ < ButtonConf disabled href = "https://forms.gle/PwgWSTJ872Pce9XW6" >
821
+ SCHOLARSHIP APPLICATION CLOSED
822
822
</ ButtonConf >
823
823
</ >
824
824
) ,
You can’t perform that action at this time.
0 commit comments