Improve email validation modal design (#12490)

closes https://github.com/twentyhq/core-team-issues/issues/1020
This commit is contained in:
nitin
2025-06-12 22:35:36 +05:30
committed by GitHub
parent 4f307a24b0
commit a5c0922399
7 changed files with 255 additions and 112 deletions

View File

@ -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>
);
};