fix(design-system): fix some button styling issues leaking link styles in (#176)

This commit is contained in:
41666 2021-03-14 14:49:29 -04:00 committed by GitHub
parent f24d2fcc99
commit 410e27c2b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 7 deletions

View file

@ -4,7 +4,7 @@ import { GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { FaDiscord } from 'react-icons/fa';
import styled from 'styled-components';
import { CompletelyStylelessLink } from '../../atoms/typography';
import { CompletelyStylelessA } from '../../atoms/typography';
export type PreauthProps = {
guildSlug?: GuildSlug;
@ -33,7 +33,7 @@ export const Preauth = (props: PreauthProps) => {
<Centered>
{props.guildSlug && <PreauthGreeting guildSlug={props.guildSlug} />}
<WidthContainer>
<CompletelyStylelessLink to={props.discordOAuthLink || '#'}>
<CompletelyStylelessA href={props.discordOAuthLink || '#'}>
<Button
color="discord"
icon={
@ -44,7 +44,7 @@ export const Preauth = (props: PreauthProps) => {
>
Sign in with Discord
</Button>
</CompletelyStylelessLink>
</CompletelyStylelessA>
</WidthContainer>
</Centered>
);