mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 14:44:21 +00:00
Clean up more imports
This commit is contained in:
parent
02df4ae841
commit
3fe617872d
2 changed files with 4 additions and 7 deletions
|
@ -1,6 +1,4 @@
|
|||
import { database } from "./prismaClient"
|
||||
import { AccountTelegram, Token, User } from "@prisma/client"
|
||||
import nodecrypto from "crypto"
|
||||
import { default as nodecrypto } from "crypto"
|
||||
import { TelegramLoginData } from "../types/user"
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
import * as React from "react"
|
||||
import { useContext } from "react"
|
||||
import { Context, Dispatch, SetStateAction } from "react"
|
||||
import { createDefinedContext } from "./definedContext"
|
||||
|
||||
/**
|
||||
* Create a new defined context (see {@link createDefinedContext}) containing the tuple returned by {@link React.useState} for the given type.
|
||||
* Create a new defined context (see {@link createDefinedContext}) containing the tuple returned by useState for the given type.
|
||||
*
|
||||
* @returns The created context.
|
||||
*/
|
||||
export function createStateContext<T>(): React.Context<[T, React.Dispatch<React.SetStateAction<T>>] | undefined> {
|
||||
export function createStateContext<T>(): Context<[T, Dispatch<SetStateAction<T>>] | undefined> {
|
||||
return createDefinedContext<[T, React.Dispatch<React.SetStateAction<T>>]>()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue