* Update the frontend to adhere to the custom eslint rule `twenty/no-spread-props` Co-authored-by: v1b3m <vibenjamin6@gmail.com> * Update the frontend to adhere to the custom eslint rule `twenty/no-spread-props` Co-authored-by: v1b3m <vibenjamin6@gmail.com> * resolve bug with data-testid --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
28 lines
642 B
TypeScript
28 lines
642 B
TypeScript
import React from 'react';
|
|
import { useTheme } from '@emotion/react';
|
|
import styled from '@emotion/styled';
|
|
|
|
import { IconCheck } from '@/ui/icon';
|
|
|
|
const StyledContainer = styled.div`
|
|
align-items: center;
|
|
background-color: ${({ theme }) => theme.color.blue};
|
|
border-radius: 50%;
|
|
display: flex;
|
|
height: 20px;
|
|
justify-content: center;
|
|
width: 20px;
|
|
`;
|
|
|
|
export type CheckmarkProps = React.ComponentPropsWithoutRef<'div'>;
|
|
|
|
export const Checkmark = (_props: CheckmarkProps) => {
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
<StyledContainer>
|
|
<IconCheck color={theme.grayScale.gray0} size={14} />
|
|
</StyledContainer>
|
|
);
|
|
};
|