File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { render } from '@testing-library/react'
2
2
import React , { useEffect } from 'react'
3
+
3
4
import { useBottomSheetMachine } from '..'
4
5
5
6
describe ( 'useBottomSheetMachine' , ( ) => {
Original file line number Diff line number Diff line change 1
- import { useMemo , useState } from 'react'
2
- import { interpret } from 'xstate'
3
- import { useSyncExternalStore } from 'use-sync-external-store/shim'
4
1
import {
5
- BottomSheetMachine ,
6
2
type BottomSheetEvent ,
3
+ BottomSheetMachine ,
7
4
} from '@bottom-sheet/state-machine'
8
5
import {
9
- assignSnapPoints ,
10
6
assignInitialHeight ,
7
+ assignSnapPoints ,
11
8
defaultInitialHeight ,
12
9
defaultSnapPoints ,
13
10
} from '@bottom-sheet/state-machine'
14
11
import type { GetInitialHeight , GetSnapPoints } from '@bottom-sheet/types'
12
+ import { useMemo , useState } from 'react'
13
+ import { useSyncExternalStore } from 'use-sync-external-store/shim'
14
+ import { interpret } from 'xstate'
15
15
16
16
export interface BottomSheetMachineProps {
17
17
initialHeight ?: number | GetInitialHeight
You can’t perform that action at this time.
0 commit comments