mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-05-08 01:22:34 +00:00
fix(design-system): fix styling regression from removing next/link (#168)
This commit is contained in:
parent
99952aa19f
commit
5e8876a90c
6 changed files with 28 additions and 24 deletions
|
@ -4,6 +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';
|
||||
|
||||
export type PreauthProps = {
|
||||
guildSlug?: GuildSlug;
|
||||
|
@ -32,7 +33,7 @@ export const Preauth = (props: PreauthProps) => {
|
|||
<Centered>
|
||||
{props.guildSlug && <PreauthGreeting guildSlug={props.guildSlug} />}
|
||||
<WidthContainer>
|
||||
<a href={props.discordOAuthLink || '#'}>
|
||||
<CompletelyStylelessLink to={props.discordOAuthLink || '#'}>
|
||||
<Button
|
||||
color="discord"
|
||||
icon={
|
||||
|
@ -43,7 +44,7 @@ export const Preauth = (props: PreauthProps) => {
|
|||
>
|
||||
Sign in with Discord
|
||||
</Button>
|
||||
</a>
|
||||
</CompletelyStylelessLink>
|
||||
</WidthContainer>
|
||||
</Centered>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue