New source found from dndbeyond.com
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { createContext, FC, useContext, useState } from "react";
|
||||
import {
|
||||
createContext,
|
||||
FC,
|
||||
PropsWithChildren,
|
||||
useContext,
|
||||
useState,
|
||||
} from "react";
|
||||
|
||||
import { MobileSections } from "../../types";
|
||||
|
||||
@@ -11,7 +17,7 @@ export interface SheetContextType {
|
||||
|
||||
export const SheetContext = createContext<SheetContextType>(null!);
|
||||
|
||||
export const SheetProvider: FC = ({ children }) => {
|
||||
export const SheetProvider: FC<PropsWithChildren> = ({ children }) => {
|
||||
const [mobileActiveSectionId, setMobileActiveSectionId] =
|
||||
useState<MobileSections>("main");
|
||||
const [swipedAmount, setSwipedAmount] = useState(0);
|
||||
|
||||
Reference in New Issue
Block a user