feat: refactor all components in common
This commit is contained in:
@@ -5,14 +5,14 @@ import React from 'react';
|
||||
* A type that represents the flags that a course can have.
|
||||
*/
|
||||
export type Flag = 'WR' | 'QR' | 'GC' | 'CD' | 'E' | 'II';
|
||||
export const flagMap: Record<string, Flag> = {
|
||||
export const flagMap = {
|
||||
Writing: 'WR',
|
||||
'Quantitative Reasoning': 'QR',
|
||||
'Global Cultures': 'GC',
|
||||
'Cultural Diversity in the United States': 'CD',
|
||||
Ethics: 'E',
|
||||
'Independent Inquiry': 'II',
|
||||
};
|
||||
} as const satisfies Record<string, Flag>;
|
||||
|
||||
interface Props {
|
||||
label: Flag;
|
||||
|
||||
Reference in New Issue
Block a user