feat: add account switcher menu (#941)

This commit is contained in:
Aman Harwara
2022-03-22 21:59:06 +05:30
committed by GitHub
parent 57469d6b2d
commit a764987b20
11 changed files with 273 additions and 225 deletions

View File

@@ -14,7 +14,7 @@ export type SubmenuStyle = {
export const calculateSubmenuStyle = (
button: HTMLButtonElement | null,
menu?: HTMLDivElement | null
menu?: HTMLDivElement | HTMLMenuElement | null
): SubmenuStyle | undefined => {
const defaultFontSize = window.getComputedStyle(
document.documentElement