* feat: add core curriculum chips to injected popup * fix: add VP and MAcore indicators * feat: core now defined in constructor * fix: make core and flags closer together * fix: stop empty core chip from showing when no core requirements * fix: remove optional chaining for core chips * feat: generalize Chip for both flags and core classes * fix: change types for storybook and add new story for CoreChip * fix: remove labelMap prop from Chip, chore: clean up imports * feat: change tooltip for core curriculum requirement --------- Co-authored-by: Derek Chen <derex1987@gmail.com>
32 lines
613 B
TypeScript
32 lines
613 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react';
|
|
import { Chip } from '@views/components/common/Chip';
|
|
|
|
const meta = {
|
|
title: 'Components/Common/Chip',
|
|
component: Chip,
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
tags: ['autodocs'],
|
|
argTypes: {
|
|
label: { control: 'text' },
|
|
},
|
|
} satisfies Meta<typeof Chip>;
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof meta>;
|
|
|
|
export const FlagChip: Story = {
|
|
args: {
|
|
label: 'QR',
|
|
variant: 'flag',
|
|
},
|
|
};
|
|
|
|
export const CoreChip: Story = {
|
|
args: {
|
|
label: 'SB',
|
|
variant: 'core',
|
|
},
|
|
};
|