feat: tooltip foundation (#2950)

* feat: add foundation for tooltips

* fix: add lang

* refactor: remove React import where no longer necessary
This commit is contained in:
Ryan Cohen
2022-08-19 19:35:50 +09:00
committed by GitHub
parent 36d17fed6e
commit 16545eec22
241 changed files with 315 additions and 273 deletions

View File

@@ -1,4 +1,3 @@
import type { ReactNode } from 'react';
import React from 'react';
export type AvailableLocale =
@@ -133,7 +132,7 @@ export const availableLanguages: AvailableLanguageObject = {
export interface LanguageContextProps {
locale: AvailableLocale;
children: (locale: string) => ReactNode;
children: (locale: string) => React.ReactNode;
setLocale?: React.Dispatch<React.SetStateAction<AvailableLocale>>;
}

View File

@@ -1,5 +1,6 @@
import { useRouter } from 'next/dist/client/router';
import React, { useEffect, useRef } from 'react';
import { useEffect, useRef } from 'react';
import type { User } from '../hooks/useUser';
import { useUser } from '../hooks/useUser';