File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
views/Home/components/ActionButtons Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import {BIG_BREAKPOINT} from "../../constants/BreakPoints";
55
66interface ButtonProps {
77 text : string ;
8+ subtext ?: string ;
89 link : string ;
910 onClick : ( ) => void ;
1011 disabled ?: boolean ;
@@ -65,6 +66,7 @@ const StyledActionButton = styled.div`
6566
6667const Button : FC < React . PropsWithChildren < ButtonProps > > = ( {
6768 text,
69+ subtext = "SOON" ,
6870 link,
6971 onClick,
7072 disabled,
@@ -91,7 +93,7 @@ const Button: FC<React.PropsWithChildren<ButtonProps>> = ({
9193 { children }
9294 < span > { ` ${ text } ` } </ span >
9395 </ a >
94- { disabled && < small > SOON </ small > }
96+ { disabled && < small > { subtext } </ small > }
9597 </ >
9698 </ StyledActionButton >
9799 ) ;
Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ const ActionButtons: FC<React.PropsWithChildren<unknown>> = () => {
4444 < Button
4545 onClick = { trackTickets }
4646 text = "🎟️ Buy Tickets"
47+ subtext = "February 2025"
4748 link = "https://tickets.devbcn.com/event/devbcn-2025"
4849 disabled = { ! isBetween ( ticketStartDay , ticketEndDay ) }
4950 />
5051 < Button
5152 onClick = { trackCFP }
5253 text = "📢 Call For Papers"
54+ subtext = "January 2025"
5355 link = { data . cfp . link }
5456 disabled = { ! isBetween ( CFPStartDay , CFPEndDay ) }
5557 />
You can’t perform that action at this time.
0 commit comments