feature: add a left padding in cells

This commit is contained in:
Sammy Teillet
2023-04-19 15:00:22 +02:00
parent b0b81ba40d
commit a843d7d76e

View File

@ -1,3 +1,4 @@
import styled from '@emotion/styled';
import * as React from 'react';
import { Link } from 'react-router-dom';
@ -6,8 +7,16 @@ type OwnProps = {
children?: React.ReactNode;
};
const Container = styled.span`
margin-left: 4px;
`;
function ClickableCell({ href, children }: OwnProps) {
return <Link to={href}>{children}</Link>;
return (
<Link to={href}>
<Container>{children}</Container>
</Link>
);
}
export default ClickableCell;