Skip to content

Commit

Permalink
fix: use delay duration 300ms
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarkhanzadian committed Jan 25, 2024
1 parent 6c3697b commit a575704
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/common/theme-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function ThemeSwitcherProvider({ children }: ThemeSwitcherProviderProps)
return (
<ThemeContext.Provider value={{ theme, userSelectedTheme, setUserSelectedTheme }}>
<RadixTheme appearance={theme}>
<RadixTooltip.Provider>{children}</RadixTooltip.Provider>
<RadixTooltip.Provider delayDuration={300}>{children}</RadixTooltip.Provider>
</RadixTheme>
</ThemeContext.Provider>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/ui/components/tooltip/tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Tooltip: Story = {
disabled: false,
},
render: args => (
<RadixTooltip.Provider>
<RadixTooltip.Provider delayDuration={300}>
<Component {...args}>
<Box>
<InfoIcon color="accent.text-subdued" size="xs" />
Expand Down

0 comments on commit a575704

Please sign in to comment.