mirror of
https://github.com/System-End/site.git
synced 2026-04-19 16:28:21 +00:00
Make ContactBanner useable outside of MultiStepForm context
This commit is contained in:
parent
97a17ecff2
commit
414b0847fd
1 changed files with 3 additions and 3 deletions
|
|
@ -7,13 +7,13 @@ const phoneNumberUri = '+1-844-237-2290'
|
|||
const email = 'hcb@hackclub.com'
|
||||
|
||||
export default function ContactBanner({ sx }) {
|
||||
const { step } = useMultiStepContext()
|
||||
const firstStep = step === 0
|
||||
const stepContext = useMultiStepContext()
|
||||
const firstStep = stepContext?.step === 0
|
||||
|
||||
return (
|
||||
<Flex
|
||||
sx={{
|
||||
display: firstStep ? 'block' : ['none', 'block'],
|
||||
display: firstStep ? 'flex' : ['none', 'flex'],
|
||||
bg: 'sunken',
|
||||
color: 'slate',
|
||||
alignItems: 'center',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue