- Create FormCountrySelectInput using the existing FormSelectFieldInput - Create AddressFormFieldInput component - Fix FormSelectFieldInput dropdown + add leftIcon <img width="554" alt="Capture d’écran 2024-12-11 à 15 56 32" src="https://github.com/user-attachments/assets/c3019f29-af76-44e1-96bd-a0c6283674e1" />
12 lines
324 B
TypeScript
12 lines
324 B
TypeScript
import { IconComponent, Tag, ThemeColor } from 'twenty-ui';
|
|
|
|
type SelectDisplayProps = {
|
|
color: ThemeColor | 'transparent';
|
|
label: string;
|
|
Icon?: IconComponent;
|
|
};
|
|
|
|
export const SelectDisplay = ({ color, label, Icon }: SelectDisplayProps) => {
|
|
return <Tag preventShrink color={color} text={label} Icon={Icon} />;
|
|
};
|