chore: app group optimizations (#1027)

This commit is contained in:
Mo
2022-05-16 21:14:18 -05:00
committed by GitHub
parent 754a189532
commit 62cf34e894
108 changed files with 1796 additions and 1187 deletions

View File

@@ -1,15 +1,14 @@
import { Icon } from '@/Components/Icon'
import { Disclosure, DisclosureButton, DisclosurePanel } from '@reach/disclosure'
import { FunctionComponent } from 'preact'
import { MouseEventHandler } from 'react'
import { useState, useRef, useEffect } from 'preact/hooks'
import { IconType } from '@standardnotes/snjs'
const DisclosureIconButton: FunctionComponent<{
className?: string
icon: IconType
onMouseEnter?: MouseEventHandler
onMouseLeave?: MouseEventHandler
onMouseEnter?: any
onMouseLeave?: any
}> = ({ className = '', icon, onMouseEnter, onMouseLeave }) => (
<DisclosureButton
onMouseEnter={onMouseEnter}
@@ -51,7 +50,7 @@ export const AuthAppInfoTooltip: FunctionComponent = () => {
/>
<DisclosurePanel>
<div
className={`bg-inverted-default color-inverted-default text-center rounded shadow-overlay
className={`bg-inverted-default color-inverted-default text-center rounded shadow-overlay
py-1.5 px-2 absolute w-103 -top-10 -left-51`}
>
Some apps, like Google Authenticator, do not back up and restore your secret keys if you lose your device or