Skip to content

Commit

Permalink
Fix webmanifest icon urls and Pager error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Mar 27, 2024
1 parent f7535de commit 1df885a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/dark/site.webmanifest
@@ -1 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{"name":"","short_name":"","icons":[{"src":"/dark/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/dark/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
2 changes: 1 addition & 1 deletion public/light/site.webmanifest
@@ -1 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{"name":"","short_name":"","icons":[{"src":"/light/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/light/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
10 changes: 5 additions & 5 deletions src/components/Pager/Pager.tsx
Expand Up @@ -99,7 +99,7 @@ export const Pager = (props: IPagerProps) => {
<ChangePageButton
direction="next"
onClick={next}
wiggle={!!(!interacted && shouldWiggle && selectedPage === 0)}
wiggle={!!(!interacted && !!shouldWiggle && selectedPage === 0)}
/>
</Box>
</Flex>
Expand All @@ -113,7 +113,7 @@ export const Pager = (props: IPagerProps) => {
);
};

const wiggle = keyframes`
const wiggleAnim = keyframes`
10%, 90% {
transform: translate3d(-1px, 0, 0);
}
Expand All @@ -131,7 +131,7 @@ const wiggle = keyframes`
}
`;
const ChangePageButton = (props: ButtonProps & { direction: 'next' | 'previous'; wiggle?: boolean }) => {
const { direction, ...buttonProps } = props;
const { direction, wiggle = false, ...buttonProps } = props;
return (
<IconButton
{...buttonProps}
Expand All @@ -142,8 +142,8 @@ const ChangePageButton = (props: ButtonProps & { direction: 'next' | 'previous';
colorScheme="black"
_hover={{ animation: 'none' }}
_focus={{ animation: 'none' }}
animation={props.wiggle ? `${wiggle} 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite` : undefined}
animationDelay={props.wiggle ? '2s' : undefined}
animation={wiggle ? `${wiggleAnim} 2s cubic-bezier(0.455, 0.030, 0.515, 0.955) infinite` : undefined}
animationdelay={wiggle ? '2s' : undefined}
/>
);
};
Expand Down

0 comments on commit 1df885a

Please sign in to comment.