Skip to content

Commit ee36f49

Browse files
committed
refactor: reuse avatar size constants in stories
1 parent 03e56ce commit ee36f49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/avatar/avatar.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import * as React from 'react'
22

33
import { Avatar, Box, Inline, Stack, Text } from '../index'
44

5-
import { getAvatarMetaColorIndex } from './utils'
5+
import { AVATAR_SIZES, getAvatarMetaColorIndex } from './utils'
66

77
import type { Meta, StoryObj } from '@storybook/react-vite'
88

9-
const sizes = [80, 72, 62, 50, 40, 36, 30, 28, 24, 20, 18, 16, 12] as const
9+
const sizes = AVATAR_SIZES
1010

1111
const contributors = [
1212
{

0 commit comments

Comments
 (0)