MCPcopy Create free account
hub / github.com/dailydotdev/apps / arm

Function arm

packages/shared/src/components/auth/EmailCodeVerification.tsx:109–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 const isCodeInput = (el: Element | null) =>
108 el?.getAttribute('autocomplete') === 'one-time-code';
109 const arm = () => {
110 resetUntil = Date.now() + 900;
111 };
112
113 const onFocusIn = (e: FocusEvent) => {
114 if (isCodeInput(e.target as Element)) {

Callers 2

onFocusInFunction · 0.85
onViewportResizeFunction · 0.85

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected