Skip to content

Commit

Permalink
feat: import react (#53)
Browse files Browse the repository at this point in the history
* feat: optimize code

* feat: optimize code
  • Loading branch information
kiner-tang authored Mar 7, 2024
1 parent f23fd97 commit 96bb3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useClosable.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useMemo } from 'react';
import * as React from 'react';
import type { TourProps } from '../interface';
import type { TourStepInfo } from '../TourStep';

Expand Down Expand Up @@ -65,7 +65,7 @@ export function useClosable(
closable: TourProps['closable'],
closeIcon: TourProps['closeIcon'],
) {
return useMemo(() => {
return React.useMemo(() => {
const stepClosableConfig = getClosableConfig(
prefixCls,
stepClosable,
Expand Down

0 comments on commit 96bb3ae

Please sign in to comment.