Skip to content

Commit

Permalink
lint + fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwasp committed Sep 11, 2024
1 parent d6ad23c commit 6f5a7c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ This `floating` variant should only be used as needed.

## Loading

The `loading` prop will render a <LinkTo component="Shimmer">`Shimmer`</LinkTo> loading state.
The `loading` prop will render a <LinkTo component="Shimmer">`Shimmer`</LinkTo> loading state. See an exmaple below!

<Canvas>
<Story name="Loading PreviewTip">
{(args) => (
{() => (
<FlexBox center py={156}>
<LoadingTip />
</FlexBox>
Expand Down
3 changes: 1 addition & 2 deletions packages/styleguide/stories/Molecules/Tip/examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
Text,
} from '@codecademy/gamut';
import { SmileyIndifferentIcon } from '@codecademy/gamut-icons';
import { timingValues } from '@codecademy/gamut-styles';
import { useRef, useState } from 'react';

export const InfoTipLinkExample = () => {
Expand Down Expand Up @@ -59,7 +58,7 @@ export const LoadingTip = () => {

const onFocus = () => {
setIsTempLoad(true);
setTimeout(() => setIsTempLoad(false), 5000);
setTimeout(() => setIsTempLoad(false), 4000);
};

return (
Expand Down

0 comments on commit 6f5a7c5

Please sign in to comment.