(dict)
| 23 | } |
| 24 | |
| 25 | export function dict2Options(dict) { |
| 26 | return Object.entries(dict).map(([key, value]) => { |
| 27 | return { |
| 28 | value: key, |
| 29 | label: value |
| 30 | } |
| 31 | }) |
| 32 | } |
| 33 | |
| 34 | export const majorList = ['CS', 'EE', 'IE', 'BME', 'SCA', 'BioSci', 'BioTech']; |
| 35 | export const majorOptions = list2Options(majorList); |