mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-30 03:43:02 +03:00
parent
5123655128
commit
b01745dba7
@ -1,8 +1,15 @@
|
||||
import styled from '@emotion/styled';
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Link, LinkProps } from 'react-router-dom';
|
||||
|
||||
const StyledUndecoratedLink = styled(Link)<{ fullWidth: boolean }>`
|
||||
type StyledLinkProps = LinkProps & {
|
||||
fullWidth?: boolean;
|
||||
};
|
||||
|
||||
const StyledUndecoratedLink = styled(
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
({ fullWidth: _, ...props }: StyledLinkProps) => <Link {...props} />,
|
||||
)<StyledLinkProps>`
|
||||
text-decoration: none;
|
||||
width: ${({ fullWidth }) => (fullWidth ? '100%' : 'auto')};
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user