A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
refactor: icon picker add asterisk option (#2496)
Andre Silvab054bdd98703
diff --git a/packages/forms-collection/src/icon-picker/icon-picker.tsx b/packages/forms-collection/src/icon-picker/icon-picker.tsxindex 9dbfb55f7..a571abbe2 100644--- a/packages/forms-collection/src/icon-picker/icon-picker.tsx+++ b/packages/forms-collection/src/icon-picker/icon-picker.tsx@@ -33,9 +33,17 @@ interface IconPickerProps {error?: string | null;onFocus?: FocusEventHandler;onBlur?: FocusEventHandler;+ withAsterisk?: boolean;}-export const IconPicker = ({ value: propsValue, onChange, error, onFocus, onBlur }: IconPickerProps) => {+export const IconPicker = ({+ value: propsValue,+ onChange,+ error,+ onFocus,+ onBlur,+ withAsterisk = true,+}: IconPickerProps) => {const [value, setValue] = useUncontrolled({value: propsValue,onChange,@@ -145,7 +153,7 @@ export const IconPicker = ({ value: propsValue, onChange, error, onFocus, onBlursetSearch(value || "");}}rightSectionPointerEvents="none"- withAsterisk+ withAsterisk={withAsterisk}error={error}label={tCommon("iconPicker.label")}placeholder={tCommon("iconPicker.header", { countIcons: String(data?.countIcons ?? 0) })}