fix: divider usage in HeaderAndActions (#113)
* fix: use StatusType * fix: use AutoLoadStatus * fix: use typof SiteSupport.* * fix: one more of Status to StatusType * fix: use import type * fix: use path alias imports * fix: use Extract * fix: remove unnecessary import * fix: **revert this later** - comment out build errs * fix: add schedule to story * feat: add props for dividers * revert: un-comment build errors This reverts commit082e9e0269. * Revert "fix: remove unnecessary import" This reverts commit9230346d26. * Revert "fix: use Extract" This reverts commitf6aa80d411. * Revert "fix: use path alias imports" This reverts commitea9bf3c635. * Revert "fix: use import type" This reverts commit27fee47778. * Revert "Merge branch 'fix/Status-to-StatusType' into fix/divider-usage" This reverts commitb1715ea360, reversing changes made to9ccc43ca27. * fix: dont use magic number * fix: lint errs * fix: reorder imports
This commit is contained in:
@@ -2,6 +2,7 @@ import { Course, Status } from '@shared/types/Course';
|
||||
import { CourseMeeting, DAY_MAP } from '@shared/types/CourseMeeting';
|
||||
import { CourseSchedule } from '@shared/types/CourseSchedule';
|
||||
import Instructor from '@shared/types/Instructor';
|
||||
import { UserSchedule } from '@shared/types/UserSchedule';
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
import CourseCatalogInjectedPopup from '@views/components/injected/CourseCatalogInjectedPopup/CourseCatalogInjectedPopup';
|
||||
|
||||
@@ -50,6 +51,12 @@ const exampleCourse: Course = new Course({
|
||||
},
|
||||
});
|
||||
|
||||
const exampleSchedule: UserSchedule = new UserSchedule({
|
||||
courses: [exampleCourse],
|
||||
name: 'Example Schedule',
|
||||
hours: 0,
|
||||
});
|
||||
|
||||
const meta: Meta<typeof CourseCatalogInjectedPopup> = {
|
||||
title: 'Components/Injected/CourseCatalogInjectedPopup',
|
||||
component: CourseCatalogInjectedPopup,
|
||||
@@ -64,5 +71,6 @@ type Story = StoryObj<typeof CourseCatalogInjectedPopup>;
|
||||
export const Default: Story = {
|
||||
args: {
|
||||
course: exampleCourse,
|
||||
activeSchedule: exampleSchedule,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user