Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOAPPFD0-164] Rename type from NewRadioItem to RadioItem #89

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions example/src/pages/Selection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ListItemCheckbox,
ListItemSwitch,
NativeSwitch,
NewRadioItem,
RadioItem,
RadioGroup,
SwitchLabel,
VSpacer,
Expand Down Expand Up @@ -145,7 +145,7 @@ const renderListItemCheckbox = () => (

// RADIO ITEMS

const mockRadioItems = (): ReadonlyArray<NewRadioItem<string>> => [
const mockRadioItems = (): ReadonlyArray<RadioItem<string>> => [
{
icon: "coggle",
value: "Let's try with a basic title",
Expand Down
4 changes: 2 additions & 2 deletions src/components/radio/RadioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Divider } from "../divider";
import { IOIcons } from "../icons";
import { ListItemRadio } from "../listitems/ListItemRadio";

export type NewRadioItem<T> = {
export type RadioItem<T> = {
id: T;
value: string;
description?: string;
Expand All @@ -13,7 +13,7 @@ export type NewRadioItem<T> = {
};

type Props<T> = {
items: ReadonlyArray<NewRadioItem<T>>;
items: ReadonlyArray<RadioItem<T>>;
selectedItem?: T;
onPress: (selected: T) => void;
};
Expand Down