mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Require link prop for styles
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
|||||||
Text as MantineText,
|
Text as MantineText,
|
||||||
TextProps as MantineTextProps,
|
TextProps as MantineTextProps,
|
||||||
} from '@mantine/core';
|
} from '@mantine/core';
|
||||||
import { Link } from 'react-router-dom';
|
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { Font, textEllipsis } from '@/renderer/styles';
|
import { Font, textEllipsis } from '@/renderer/styles';
|
||||||
|
|
||||||
@@ -46,7 +45,6 @@ export const _Text = ({
|
|||||||
}: TextProps) => {
|
}: TextProps) => {
|
||||||
return (
|
return (
|
||||||
<StyledText
|
<StyledText
|
||||||
$link={rest.component === Link}
|
|
||||||
$noSelect={$noSelect}
|
$noSelect={$noSelect}
|
||||||
$secondary={$secondary}
|
$secondary={$secondary}
|
||||||
font={font}
|
font={font}
|
||||||
|
|||||||
Reference in New Issue
Block a user