Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnrivers committed Aug 10, 2020
1 parent 148e374 commit b87a105
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
5 changes: 3 additions & 2 deletions src/client/components/atoms/BaseLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const BaseLink: React.FC<BaseLinkProps> = props => {
backgroundType = 'background',
backgroundColorVariant = 'variant0',
disabled = false,
onClick,
children,
} = props;

Expand Down Expand Up @@ -78,11 +79,11 @@ export const BaseLink: React.FC<BaseLinkProps> = props => {
return disabled ? (
<div css={baseStyles}>{children}</div>
) : element === 'a' ? (
<a href={to} css={styles}>
<a href={to} css={styles} onClick={onClick}>
{children}
</a>
) : (
<Link to={to} css={styles}>
<Link to={to} css={styles} onClick={onClick}>
{children}
</Link>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ import { jsx, css } from '@emotion/core';
import * as React from 'react';
import { motion } from 'framer-motion';
import { CloseIcon } from 'client/components/atoms/icons/CloseIcon';
import { commonStyles, useAppTheme } from 'client/styles/tokens';
import { useAppTheme } from 'client/styles/tokens';
import {
getDiscographyUrl,
getMembersUrl,
getSearchUrl,
} from 'client/utils/urls';
import { componentElevationKey } from 'client/styles/elevation';
import { Divider } from 'client/components/atoms/Divider';
import { BaseButton } from 'client/components/atoms/BaseButton';
import {
TextLink,
Expand Down Expand Up @@ -142,16 +141,6 @@ export const Sidebar: React.FC<{
{getTranslation('search')}
</NavigationItem>
</ul>
<Divider
lineColor={{
on: 'onSecondary',
variant: 'variant0',
}}
css={css`
margin: ${commonStyles.spacing.l} auto;
width: 24px;
`}
/>
</div>
</motion.div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/client/features/Album/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const AlbumPage: React.FC<AlbumPageProps> = props => {
borderRadius="s"
padding="xs"
css={css`
width: 120px;
width: 130px;
margin: ${commonStyles.spacing.xs};
`}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/client/features/Members/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const MembersPage: React.FC<MembersPageProps> = props => {
borderRadius="s"
padding="xs"
css={css`
width: 120px;
width: 130px;
margin: ${commonStyles.spacing.xs};
`}
/>
Expand Down

0 comments on commit b87a105

Please sign in to comment.