5eeee6a7ed
In this PR, I implemented or confirmed that the read-only mode works for the following fields: - [x] FormUuidFieldInput - [x] FormRawJsonFieldInput - [x] FormPhoneFieldInput - [x] FormEmailsFieldInput - [x] FormLinksFieldInput - [x] FormAddressFieldInput - [x] FormFullNameFieldInput
26 lines
453 B
TypeScript
26 lines
453 B
TypeScript
import { IconComponent, Tag, ThemeColor } from 'twenty-ui';
|
|
|
|
type SelectDisplayProps = {
|
|
color: ThemeColor | 'transparent';
|
|
label: string;
|
|
Icon?: IconComponent;
|
|
preventPadding?: boolean;
|
|
};
|
|
|
|
export const SelectDisplay = ({
|
|
color,
|
|
label,
|
|
Icon,
|
|
preventPadding,
|
|
}: SelectDisplayProps) => {
|
|
return (
|
|
<Tag
|
|
preventShrink
|
|
color={color}
|
|
text={label}
|
|
Icon={Icon}
|
|
preventPadding={preventPadding}
|
|
/>
|
|
);
|
|
};
|