Import company and person from csv file (#1236)

* feat: wip implement back-end call csv import

* fix: rebase IconBrandTwitter missing

* feat: person and company csv import

* fix: test & clean

* fix: clean & test
This commit is contained in:
Jérémy M
2023-08-16 23:18:16 +02:00
committed by GitHub
parent 5890354d21
commit 8863bb0035
74 changed files with 950 additions and 312 deletions

View File

@ -30,7 +30,7 @@ const Container = styled.div<{ labelPosition?: LabelPosition }>`
`;
type RadioInputProps = {
radioSize?: RadioSize;
'radio-size'?: RadioSize;
};
const RadioInput = styled(motion.input)<RadioInputProps>`
@ -60,13 +60,13 @@ const RadioInput = styled(motion.input)<RadioInputProps>`
background-color: ${({ theme }) => theme.grayScale.gray0};
border-radius: 50%;
content: '';
height: ${({ radioSize }) =>
height: ${({ 'radio-size': radioSize }) =>
radioSize === RadioSize.Large ? '8px' : '6px'};
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: ${({ radioSize }) =>
width: ${({ 'radio-size': radioSize }) =>
radioSize === RadioSize.Large ? '8px' : '6px'};
}
}
@ -74,10 +74,10 @@ const RadioInput = styled(motion.input)<RadioInputProps>`
cursor: not-allowed;
opacity: 0.12;
}
height: ${({ radioSize }) =>
height: ${({ 'radio-size': radioSize }) =>
radioSize === RadioSize.Large ? '18px' : '16px'};
position: relative;
width: ${({ radioSize }) =>
width: ${({ 'radio-size': radioSize }) =>
radioSize === RadioSize.Large ? '18px' : '16px'};
`;
@ -134,7 +134,7 @@ export function Radio({
data-testid="input-radio"
checked={checked}
value={value}
radioSize={size}
radio-size={size}
disabled={disabled}
onChange={handleChange}
initial={{ scale: 0.95 }}