This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// User storage values | |
{gridView: true, sortBy: "firstName"} | |
// Previously data model | |
{gridView: Boolean!, sortBy: String!} | |
// New data model - Retrieved "sortBy" value from storage is a string, but the "SortArray" is expected. | |
{gridView: Boolean!, sortBy: SortArray!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
import {AVATAR_SIZE} from "./Avatar.utils"; | |
import AvatarJpg from "public/avatar.jpg"; | |
// ... | |
type Story = StoryObj<typeof meta>; | |
/** Default Avatar variant */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const defaultModalAnimation: AnimationProps = { | |
transition: {duration: 0.2, delay: 0.1, ease: "easeInOut"}, | |
initial: {opacity: 0, scale: 0.9, y: 20}, | |
animate: {opacity: 1, scale: 1, y: 0}, | |
exit: { | |
opacity: 0, | |
transition: { | |
duration: 0.2 | |
} | |
} |