mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
chore(react): migrate to eslint, add prettier (#26633)
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import { ActionSheetButton, ActionSheetOptions, actionSheetController } from '@ionic/core/components';
|
||||
import type { ActionSheetButton, ActionSheetOptions } from '@ionic/core/components';
|
||||
import { actionSheetController } from '@ionic/core/components';
|
||||
import { defineCustomElement } from '@ionic/core/components/ion-action-sheet.js';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
import { HookOverlayOptions } from './HookOverlayOptions';
|
||||
import type { HookOverlayOptions } from './HookOverlayOptions';
|
||||
import { useController } from './useController';
|
||||
|
||||
/**
|
||||
@ -17,10 +18,7 @@ export function useIonActionSheet(): UseIonActionSheetResult {
|
||||
);
|
||||
|
||||
const present = useCallback(
|
||||
(
|
||||
buttonsOrOptions: ActionSheetButton[] | (ActionSheetOptions & HookOverlayOptions),
|
||||
header?: string
|
||||
) => {
|
||||
(buttonsOrOptions: ActionSheetButton[] | (ActionSheetOptions & HookOverlayOptions), header?: string) => {
|
||||
if (Array.isArray(buttonsOrOptions)) {
|
||||
return controller.present({
|
||||
buttons: buttonsOrOptions,
|
||||
|
||||
Reference in New Issue
Block a user