Add readonly mode to form fields - 2nd part (#9582)
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
This commit is contained in:
committed by
GitHub
parent
21a6dff2c9
commit
5eeee6a7ed
@ -4,8 +4,22 @@ type SelectDisplayProps = {
|
||||
color: ThemeColor | 'transparent';
|
||||
label: string;
|
||||
Icon?: IconComponent;
|
||||
preventPadding?: boolean;
|
||||
};
|
||||
|
||||
export const SelectDisplay = ({ color, label, Icon }: SelectDisplayProps) => {
|
||||
return <Tag preventShrink color={color} text={label} Icon={Icon} />;
|
||||
export const SelectDisplay = ({
|
||||
color,
|
||||
label,
|
||||
Icon,
|
||||
preventPadding,
|
||||
}: SelectDisplayProps) => {
|
||||
return (
|
||||
<Tag
|
||||
preventShrink
|
||||
color={color}
|
||||
text={label}
|
||||
Icon={Icon}
|
||||
preventPadding={preventPadding}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user