summaryrefslogtreecommitdiff
path: root/web/src/components/WebAuthnTryIcon.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/components/WebAuthnTryIcon.tsx')
-rw-r--r--web/src/components/WebAuthnTryIcon.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/src/components/WebAuthnTryIcon.tsx b/web/src/components/WebAuthnTryIcon.tsx
index 42bacacf0..be243a24e 100644
--- a/web/src/components/WebAuthnTryIcon.tsx
+++ b/web/src/components/WebAuthnTryIcon.tsx
@@ -15,7 +15,7 @@ interface Props {
webauthnTouchState: WebAuthnTouchState;
}
-export default function WebAuthnTryIcon(props: Props) {
+const WebAuthnTryIcon = function (props: Props) {
const touchTimeout = 30;
const theme = useTheme();
const [timerPercent, triggerTimer, clearTimer] = useTimer(touchTimeout * 1000 - 500);
@@ -65,4 +65,6 @@ export default function WebAuthnTryIcon(props: Props) {
{failure}
</Box>
);
-}
+};
+
+export default WebAuthnTryIcon;