Require link prop for styles

This commit is contained in:
jeffvli
2022-11-14 14:25:50 -08:00
parent 7061e16fb4
commit 8dad9a8109
-2
View File
@@ -4,7 +4,6 @@ import {
Text as MantineText,
TextProps as MantineTextProps,
} from '@mantine/core';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import { Font, textEllipsis } from '@/renderer/styles';
@@ -46,7 +45,6 @@ export const _Text = ({
}: TextProps) => {
return (
<StyledText
$link={rest.component === Link}
$noSelect={$noSelect}
$secondary={$secondary}
font={font}