From 7f0328e73daf0f4e3849d09c6febbc3f8b6aedd5 Mon Sep 17 00:00:00 2001 From: beerose Date: Tue, 25 Jul 2023 14:52:39 +0200 Subject: [PATCH] conf website: disable Scholarship form link --- src/components/Conf/Button/index.tsx | 23 ++++++++++++++++++++--- src/pages/conf/faq.tsx | 4 ++-- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/components/Conf/Button/index.tsx b/src/components/Conf/Button/index.tsx index e235a9cfc3..79b6a7108f 100644 --- a/src/components/Conf/Button/index.tsx +++ b/src/components/Conf/Button/index.tsx @@ -5,13 +5,30 @@ interface ButtonProps { children: ReactNode className?: string href?: string + disabled?: boolean } -function ButtonConf({ href, className, children }: ButtonProps): ReactElement { - return ( +function ButtonConf({ + href, + className, + children, + disabled, +}: ButtonProps): ReactElement { + return disabled ? ( + + {children} + + ) : ( = [
  • Application Deadline — Friday, July 21, 2023 11:59 PM PST
  • Notifications — Week of August 7, 2023
  • - - Apply for a Scholarship + + SCHOLARSHIP APPLICATION CLOSED ),