Skip to content

Commit

Permalink
feat: stories for logo
Browse files Browse the repository at this point in the history
  • Loading branch information
DereC4 committed May 22, 2024
1 parent 40452ed commit 6011432
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions src/stories/components/LogoIcon.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Meta, StoryObj } from '@storybook/react';
import { SmallLogo, LargeLogo } from '@views/components/common/LogoIcon'; // Adjust the path as necessary

const meta = {
title: 'Components/Common/Logo',
component: SmallLogo,
tags: ['autodocs'],
argTypes: {
className: { control: 'text' },
},
} satisfies Meta<typeof SmallLogo>;

export default meta;
type Story = StoryObj<typeof meta>;

export const Small: Story = {
args: {
className: '',
},
};

export const Large: Story = {
render: args => <LargeLogo {...args} />,
args: {
className: '',
},
};
2 changes: 1 addition & 1 deletion src/views/components/common/LogoIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function SmallLogo({ className }: { className?: string }): JSX.Element {
return (
<div className={clsx('flex items-center gap-2', className)}>
<LogoIcon />
<div className='flex flex-col text-lg font-medium leading-[1em]'>
<div className='flex flex-col text-lg font-medium leading-[1em] mt-1'>
<p className='text-nowrap text-ut-burntorange'>UT Registration</p>
<p className='text-ut-burntorange'>
Plus{' '}
Expand Down

0 comments on commit 6011432

Please sign in to comment.