Skip to content

Commit 976a49e

Browse files
authored
Merge pull request #1066 from hackclub/sampoder-patch-2
Custom emails in footer / HCB override
2 parents 2fab803 + df01c20 commit 976a49e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/footer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Service = ({ href, icon, name = '', ...props }) => (
5151
</Link>
5252
)
5353

54-
const Footer = ({ dark = false, children, ...props }) => (
54+
const Footer = ({ dark = false, email = "[email protected]", children, ...props }) => (
5555
<Base
5656
color={dark ? 'muted' : 'slate'}
5757
py={[4, 5]}
@@ -173,7 +173,7 @@ const Footer = ({ dark = false, children, ...props }) => (
173173
icon="instagram"
174174
name="Instagram"
175175
/>
176-
<Service href="mailto:[email protected]" icon="email-fill" />
176+
<Service href={`mailto:${email}`} icon="email-fill" />
177177
</Grid>
178178
<Text my={2}>
179179
<Link href="tel:1-855-625-HACK">1-855-625-HACK</Link>

pages/hcb/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function Bank({ stats }) {
5353
<Start stats={stats} />
5454
</Box>
5555
</Box>
56-
<Footer dark key="footer" />
56+
<Footer dark key="footer" email="[email protected]" />
5757
</>
5858
)
5959
}

0 commit comments

Comments
 (0)