Skip to content

Commit

Permalink
Update CourseCard.stories.ts (#1460)
Browse files Browse the repository at this point in the history
The discordOauthUrl field now contains the Discord invite link in all story objects.solve the issue #1437
  • Loading branch information
Aryam2121 authored Oct 8, 2024
1 parent 91cd704 commit 37fd577
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions storybook/stories/components/CourseCard.stories.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import { CourseCard } from '@/components/CourseCard';
import { Meta, StoryObj } from '@storybook/react';

const meta: Meta<typeof CourseCard> = {
title: 'CourseCard',
component: CourseCard,
};

export default meta;

type Story = StoryObj<typeof meta>;

export const ButtonColor: Story = {
args: {
course: {
id: 1,
slug: 'course-slug',
appxCourseId: '1',
certIssued: false,
discordOauthUrl: '',
discordOauthUrl: 'https://discord.com/invite/WAaXacK9bh', // Added Discord link
discordRoleId: 'discord-role-id',
title: 'Course Title',
description: 'Course Description',
Expand All @@ -37,7 +25,7 @@ export const SmallRoundedCard: Story = {
id: 1,
slug: 'course-slug',
appxCourseId: '1',
discordOauthUrl: '',
discordOauthUrl: 'https://discord.com/invite/WAaXacK9bh', // Added Discord link
certIssued: false,
discordRoleId: 'discord-role-id',
title: 'Course Title',
Expand All @@ -58,8 +46,8 @@ export const MediumRoundedCard: Story = {
id: 1,
slug: 'course-slug',
appxCourseId: '1',
discordOauthUrl: 'https://discord.com/invite/WAaXacK9bh', // Added Discord link
certIssued: false,
discordOauthUrl: '',
discordRoleId: 'discord-role-id',
title: 'Course Title',
description: 'Course Description',
Expand All @@ -79,9 +67,9 @@ export const LargeRoundedCard: Story = {
id: 1,
slug: 'course-slug',
appxCourseId: '1',
discordOauthUrl: '',
discordRoleId: 'discord-role-id',
discordOauthUrl: 'https://discord.com/invite/WAaXacK9bh', // Added Discord link
certIssued: false,
discordRoleId: 'discord-role-id',
title: 'Course Title',
description: 'Course Description',
imageUrl:
Expand Down

0 comments on commit 37fd577

Please sign in to comment.