|
1 | 1 | import React from 'react'; |
2 | 2 | import axios from 'axios' |
3 | 3 | import { Divider, Dropdown, Button } from 'semantic-ui-react'; |
4 | | - |
| 4 | +import {yearOptions} from '../constants/years' |
5 | 5 | import { |
6 | 6 | urlGetBranchAndDegreeData, |
7 | 7 | urlGetFilteredStudents, |
8 | 8 | } from '../urls' |
9 | 9 |
|
10 | 10 | import '../css/search.css' |
11 | 11 |
|
12 | | -const yearOptions = [ |
13 | | - { key: 1, text: '1st Year', value: 1 }, |
14 | | - { key: 2, text: '2nd Year', value: 2 }, |
15 | | - { key: 3, text: '3rd Year', value: 3 }, |
16 | | - { key: 4, text: '4th Year', value: 4 }, |
17 | | - { key: 5, text: '5th Year', value: 5 }, |
18 | | - { key: 6, text: '6th Year', value: 6 }, |
19 | | - { key: 7, text: '7th Year', value: 7 }, |
20 | | - { key: 8, text: '8th Year', value: 8 }, |
21 | | - { key: 9, text: '9th Year', value: 9 }, |
22 | | - { key: 10, text: '10th Year', value: 10 }, |
23 | | -] |
24 | | - |
25 | 12 | class Search extends React.Component { |
26 | 13 | constructor(props) { |
27 | 14 | super(props); |
|
0 commit comments