Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma strängvärde byggs med konkatenering i stället för att matcha mönstret.
23 lines
910 B
TypeScript
23 lines
910 B
TypeScript
'use client'
|
|
|
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip'
|
|
|
|
/**
|
|
* The single app-wide tooltip provider, mounted once in the root layout.
|
|
*
|
|
* `skipDelayDuration` is provider-scoped: it is the grace window during which
|
|
* a second tooltip opens instantly because one is already open. Mounting a
|
|
* provider per tooltip instance (which is what AccountNumber, InfoTooltip,
|
|
* BankSyncStatusChip and KassaflodesanalysClient each used to do) means every
|
|
* instance sits in its own scope and the grace window can never fire, so
|
|
* scanning a huvudbok re-pays the full open delay on every single account
|
|
* number. One provider makes the second and later tooltips instant.
|
|
*/
|
|
export function TooltipProvider({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<TooltipPrimitive.Provider delayDuration={200} skipDelayDuration={300}>
|
|
{children}
|
|
</TooltipPrimitive.Provider>
|
|
)
|
|
}
|