Improve email validation modal design (#12490)
closes https://github.com/twentyhq/core-team-issues/issues/1020
This commit is contained in:
@ -0,0 +1,33 @@
|
||||
import { useTheme } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
import { IconComponent } from 'twenty-ui/display';
|
||||
import { RGBA } from 'twenty-ui/theme';
|
||||
|
||||
const StyledCheckContainer = styled.div<{ color: string }>`
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
border: 2px solid ${({ color }) => color};
|
||||
border-radius: ${({ theme }) => theme.border.radius.rounded};
|
||||
box-shadow: ${({ color }) => color && `-4px 4px 0 -2px ${RGBA(color, 1)}`};
|
||||
height: 36px;
|
||||
width: 36px;
|
||||
`;
|
||||
|
||||
type OnboardingModalCircularIconProps = {
|
||||
Icon: IconComponent;
|
||||
};
|
||||
|
||||
export const OnboardingModalCircularIcon = ({
|
||||
Icon,
|
||||
}: OnboardingModalCircularIconProps) => {
|
||||
const theme = useTheme();
|
||||
const color =
|
||||
theme.name === 'light' ? theme.grayScale.gray90 : theme.grayScale.gray10;
|
||||
|
||||
return (
|
||||
<StyledCheckContainer color={color}>
|
||||
<Icon size={24} color={color} stroke={3} />
|
||||
</StyledCheckContainer>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user