From 005f3a87f9f264b3a5f50de72a51eeb572979b8f Mon Sep 17 00:00:00 2001 From: Damiano Plebani Date: Mon, 2 Oct 2023 14:32:23 +0200 Subject: [PATCH] Rename type from `NewRadioItem` to `RadioItem` --- example/src/pages/Selection.tsx | 4 ++-- src/components/radio/RadioGroup.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/src/pages/Selection.tsx b/example/src/pages/Selection.tsx index d4f40ad6..358ea3aa 100644 --- a/example/src/pages/Selection.tsx +++ b/example/src/pages/Selection.tsx @@ -6,7 +6,7 @@ import { ListItemCheckbox, ListItemSwitch, NativeSwitch, - NewRadioItem, + RadioItem, RadioGroup, SwitchLabel, VSpacer, @@ -145,7 +145,7 @@ const renderListItemCheckbox = () => ( // RADIO ITEMS -const mockRadioItems = (): ReadonlyArray> => [ +const mockRadioItems = (): ReadonlyArray> => [ { icon: "coggle", value: "Let's try with a basic title", diff --git a/src/components/radio/RadioGroup.tsx b/src/components/radio/RadioGroup.tsx index 74a92519..ddbb8bd2 100644 --- a/src/components/radio/RadioGroup.tsx +++ b/src/components/radio/RadioGroup.tsx @@ -4,7 +4,7 @@ import { Divider } from "../divider"; import { IOIcons } from "../icons"; import { ListItemRadio } from "../listitems/ListItemRadio"; -export type NewRadioItem = { +export type RadioItem = { id: T; value: string; description?: string; @@ -13,7 +13,7 @@ export type NewRadioItem = { }; type Props = { - items: ReadonlyArray>; + items: ReadonlyArray>; selectedItem?: T; onPress: (selected: T) => void; };