Skip to content

Commit

Permalink
chore: fixes detected prettier/eslint errors
Browse files Browse the repository at this point in the history
Fixed errors found by running `yarn typescript` and `yarn lint` to fix
errors that could not be automatically fixed.
  • Loading branch information
thecodedrift committed Dec 23, 2021
1 parent 1147a59 commit 439b4d4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
5 changes: 3 additions & 2 deletions example/src/screens/advanced/BackdropExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import HeaderHandle from '../../components/headerHandle';

const BackdropExample = () => {
// state
const [backdropPressBehavior, setBackdropPressBehavior] =
useState<'none' | 'close' | 'collapse'>('collapse');
const [backdropPressBehavior, setBackdropPressBehavior] = useState<
'none' | 'close' | 'collapse'
>('collapse');

// hooks
const bottomSheetRef = useRef<BottomSheet>(null);
Expand Down
5 changes: 3 additions & 2 deletions example/src/screens/modal/BackdropExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ import withModalProvider from '../withModalProvider';

const BackdropExample = () => {
// state
const [backdropPressBehavior, setBackdropPressBehavior] =
useState<'none' | 'close' | 'collapse'>('collapse');
const [backdropPressBehavior, setBackdropPressBehavior] = useState<
'none' | 'close' | 'collapse'
>('collapse');
// refs
const bottomSheetRef = useRef<BottomSheetModal>(null);

Expand Down
3 changes: 2 additions & 1 deletion src/components/bottomSheetBackdrop/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ReactNode } from 'react';
import type { ViewProps } from 'react-native';
import type { BottomSheetVariables } from '../../types';

Expand Down Expand Up @@ -42,5 +43,5 @@ export interface BottomSheetDefaultBackdropProps
/**
* Child component that will be rendered on backdrop.
*/
children?: React.ReactNode | React.ReactNode[];
children?: ReactNode | ReactNode[];
}
5 changes: 3 additions & 2 deletions src/contexts/external.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { createContext } from 'react';
import type { BottomSheetMethods, BottomSheetVariables } from '../types';

export const BottomSheetContext =
createContext<(BottomSheetMethods & BottomSheetVariables) | null>(null);
export const BottomSheetContext = createContext<
(BottomSheetMethods & BottomSheetVariables) | null
>(null);

export const BottomSheetProvider = BottomSheetContext.Provider;

0 comments on commit 439b4d4

Please sign in to comment.