Skip to content

Commit

Permalink
refactor: added dropdownInput to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
me-liu committed Nov 18, 2024
1 parent a3fff1c commit 309931e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/InputDropdown/InputDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Select, {
} from 'react-select';
import COLORS from '@/styles/colors';
import { P, SMALL } from '@/styles/text';
import { DropdownOption } from '@/types/dropdown';
import { DropdownOption } from '@/types/schema';
import {
AnimatedWrapper,
DropdownStyles,
Expand Down
2 changes: 1 addition & 1 deletion components/InputDropdown/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { StylesConfig } from 'react-select';
import styled, { keyframes } from 'styled-components';
import COLORS from '@/styles/colors';
import { H6 } from '@/styles/text';
import { DropdownOption } from '@/types/dropdown';
import { DropdownOption } from '@/types/schema';

export const DropdownWrapper = styled.div`
display: flex;
Expand Down
4 changes: 0 additions & 4 deletions types/dropdown.ts

This file was deleted.

5 changes: 5 additions & 0 deletions types/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,8 @@ export interface VolunteersPreferences {
genre?: Genre[];
additional_info?: string;
}

export interface DropdownOption {
label: string;
value: string;
}

0 comments on commit 309931e

Please sign in to comment.