Skip to content

Commit

Permalink
fix: pass in discord href as prop
Browse files Browse the repository at this point in the history
  • Loading branch information
jongomez committed Oct 24, 2023
1 parent e2cfd31 commit 96f59bf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/components/JoinDiscordCard/JoinDiscordCard.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import { Button, Typography } from '@acid-info/lsd-react'
import styled from '@emotion/styled'
import Link from 'next/link'
import { FC } from 'react'
import { DiscordIcon } from '../Icons/DiscordIcon'

type JoinDiscordCardProps = React.HTMLAttributes<HTMLDivElement>
type JoinDiscordCardProps = React.HTMLAttributes<HTMLDivElement> & {
discordHref?: string
}

export const JoinDiscordCard = (props: JoinDiscordCardProps) => {
export const JoinDiscordCard: FC<JoinDiscordCardProps> = ({
discordHref = 'https://discord.gg/logos-state',
...props
}) => {
return (
<JoinDiscordCardContainer {...props}>
<Typography variant="body1">Join the discussion</Typography>
<Link
href="https://discord.gg/logos-state"
href={discordHref}
style={{
textDecoration: 'none',
}}
Expand Down

0 comments on commit 96f59bf

Please sign in to comment.