-
-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…kobo) * fix: fixes BottomSheetBackdrop defaults Coercion of 0 and false result in defaults being accidentally assigned to the BottomSheetBackdrop's props. This fix uses the null coalesce operator ?? to use either a user supplied value or fall back to the built-in default. Resolves #779 * chore: fixes detected prettier/eslint errors Fixed errors found by running `yarn typescript` and `yarn lint` to fix errors that could not be automatically fixed. * refactor: applies updates from PR review
- Loading branch information
Showing
4 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |