Skip to content

Commit

Permalink
fix(react): update icon types to be a string as well, fixes #20229 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
elylucas committed Jan 17, 2020
1 parent 9e35ebe commit 1411d8a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/IonActionSheet.tsx
Expand Up @@ -6,7 +6,7 @@ export interface ActionSheetButton extends Omit<ActionSheetButtonCore, 'icon'> {
icon?: {
ios: string;
md: string;
};
} | string;
}

export interface ActionSheetOptions extends Omit<ActionSheetOptionsCore, 'buttons'> {
Expand Down
6 changes: 3 additions & 3 deletions packages/react/src/components/IonIcon.tsx
Expand Up @@ -11,10 +11,10 @@ interface IonIconProps {
ariaLabel?: string;
color?: string;
flipRtl?: boolean;
icon?: { ios: string; md: string; };
ios?: { ios: string; md: string; };
icon?: { ios: string; md: string; } | string;
ios?: { ios: string; md: string; } | string;
lazy?: boolean;
md?: { ios: string; md: string; };
md?: { ios: string; md: string; } | string;
mode?: 'ios' | 'md';
name?: string;
size?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/IonToast.tsx
Expand Up @@ -6,7 +6,7 @@ export interface ToastButton extends Omit<ToastButtonCore, 'icon'> {
icon?: {
ios: string;
md: string;
};
} | string;
}

export interface ToastOptions extends Omit<ToastOptionsCore, 'buttons'> {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/index.ts
Expand Up @@ -8,11 +8,11 @@ export * from './proxies';
// createControllerComponent
export { IonAlert } from './IonAlert';
export { IonLoading } from './IonLoading';
export { IonToast } from './IonToast';
export * from './IonToast';
export { IonPicker } from './IonPicker';

// createOverlayComponent
export { IonActionSheet } from './IonActionSheet';
export * from './IonActionSheet';
export { IonModal } from './IonModal';
export { IonPopover } from './IonPopover';

Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/navigation/IonBackButton.tsx
Expand Up @@ -9,7 +9,7 @@ type Props = Omit<LocalJSX.IonBackButton, 'icon'> & IonicReactProps & {
icon?: {
ios: string;
md: string;
};
} | string;
ref?: React.RefObject<HTMLIonBackButtonElement>;
};

Expand Down

0 comments on commit 1411d8a

Please sign in to comment.