fix(design-system): fix styling regression from removing next/link (#168)

This commit is contained in:
41666 2021-03-13 20:16:40 -05:00 committed by GitHub
parent 99952aa19f
commit 5e8876a90c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 24 deletions

View file

@ -1,5 +1,9 @@
import { Avatar, utils } from '@roleypoly/design-system/atoms/avatar';
import { AccentTitle, AmbientLarge } from '@roleypoly/design-system/atoms/typography';
import {
AccentTitle,
AmbientLarge,
CompletelyStylelessLink,
} from '@roleypoly/design-system/atoms/typography';
import { GuildSlug } from '@roleypoly/types';
import * as React from 'react';
import { GoPencil } from 'react-icons/go';
@ -25,12 +29,12 @@ export const ServerMasthead = (props: ServerMastheadProps) => {
<Name>
<AccentTitle>{props.guild.name}</AccentTitle>
{props.editable && (
<a href={`/s/${props.guild.id}/edit`}>
<CompletelyStylelessLink to={`/s/${props.guild.id}/edit`}>
<Editable role="button">
<GoPencil />
&nbsp; <AmbientLarge>Edit Server</AmbientLarge>
</Editable>
</a>
</CompletelyStylelessLink>
)}
</Name>
</Wrapper>