Skip to content

Commit d80b54a

Browse files
committed
Remove sudivision search
1 parent 1081070 commit d80b54a

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

src/components/InputField/InputField.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ const InputField: React.FC<Props> = ({
149149
case 'overall':
150150
localTipOptions = { persons: localTipOptions.persons };
151151
break;
152-
case 'subdivision':
153-
localTipOptions = { subdivisions: localTipOptions.subdivisions };
154-
break;
155152
case 'interests':
156153
localTipOptions = { interests: localTipOptions.interests };
157154
break;

src/components/TagsBlock/TagsBlock.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type Props = {
1212
lazy?: boolean;
1313
};
1414

15-
const LIMIT_TAGS = 12;
15+
const LIMIT_TAGS = 24;
1616

1717
const TagsBlock: React.FC<Props> = ({ title, subtitle, fetchFunction, lazy }) => {
1818
const [tags, setTags] = useState<string[]>([]);

src/constants.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { getFaculties } from '@/api/subdivision';
21
import { getInterests } from '@/api/teacher';
32
import { AcademicDegree, AcademicStatus } from './types/enums';
43
import { ExperienceType, Tab } from './types/intellect';
@@ -41,12 +40,6 @@ export const tabs = [
4140
{ label: 'За алфавітом',
4241
type: 'alphabetic'
4342
},
44-
{
45-
label: 'За підрозділами',
46-
type: 'subdivision',
47-
placeholder: 'Введіть кафедру або факультет, наприклад: ФІОТ',
48-
tips: true,
49-
},
5043
{
5144
label: 'За інтересами',
5245
type: 'interests',
@@ -56,12 +49,6 @@ export const tabs = [
5649
] as Tab[];
5750

5851
export const tagsOptions = [
59-
{
60-
title: 'Список підрозділів',
61-
subtitle: 'Список інститутів та факультетів',
62-
fetchFunction: getFaculties,
63-
lazy: false,
64-
},
6552
{
6653
title: 'Наукові інтереси',
6754
subtitle: 'Список можливих інтересів і захоплень викладачів',

src/types/intellect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type Position = {
2222
};
2323

2424
export type ExperienceType = 'profile' | 'rating';
25-
export type SearchMode = 'overall' | 'alphabetic' | 'subdivision' | 'interests';
25+
export type SearchMode = 'overall' | 'alphabetic' | 'interests';
2626
export type SearchParams = 'startsWith' | 'subdivision' | 'interests';
2727

2828
export type Rating = {

0 commit comments

Comments
 (0)