Skip to content

Commit

Permalink
refactor(site/typography/Link): rename RouterLink to ReactRouterLink
Browse files Browse the repository at this point in the history
  • Loading branch information
sukvvon committed Aug 31, 2024
1 parent 4789b2f commit e84e7a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions site/src/system/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface ColumnsProps {
collapseOnMobile?: boolean;
collapseOnTablet?: boolean;
}

export const Columns = ({
children,
space,
Expand Down
8 changes: 4 additions & 4 deletions site/src/typography/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {
Link as RouterLink,
LinkProps as RouterLinkProps,
Link as ReactRouterLink,
LinkProps as ReactRouterLinkProps,
} from 'react-router-dom';
import { HashLink } from 'react-router-hash-link';
import classnames from 'classnames';
import { TextProps, useTextStyles } from './Text';
import * as styles from './Link.css';
import { sprinkles } from '../system/styles/sprinkles.css';

export interface LinkProps extends RouterLinkProps {
export interface LinkProps extends ReactRouterLinkProps {
baseline?: boolean;
size?: 'standard' | 'small' | 'xsmall';
underline?: 'always' | 'hover' | 'never';
Expand Down Expand Up @@ -50,7 +50,7 @@ export const Link = ({
}

return (
<RouterLink
<ReactRouterLink
onClick={() => window.scrollTo(0, 0)}
to={to}
{...restProps}
Expand Down

0 comments on commit e84e7a4

Please sign in to comment.