Skip to content

Commit 8b6f055

Browse files
authored
Custom emails in footer
1 parent 2fab803 commit 8b6f055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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>

0 commit comments

Comments
 (0)