Skip to content

Commit

Permalink
Merge branch 'dev' into chore/sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene028 authored Aug 3, 2024
2 parents 6acb94a + d05a763 commit 44619d7
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 159 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"react-toastify": "^10.0.4",
"wowds-icons": "^0.1.0",
"wowds-tokens": "^0.0.9",
"wowds-ui": "^0.1.7",
"zustand": "^4.5.0"
"wowds-ui": "^0.1.8",
},
"devDependencies": {
"@sentry/react": "^8.22.0",
Expand Down
26 changes: 22 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 27 additions & 19 deletions src/components/auth/DepartmentSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import { useGetDepartmentList } from '@/hooks/query';
import { Control, Controller } from 'react-hook-form';
import DropDown from 'wowds-ui/DropDown';
Expand Down Expand Up @@ -32,28 +33,35 @@ const DepartmentSelect = ({ control }: DepartmentSelectProps) => {
}
}}
render={({ field }) => (
<DropDown
{...field}
label="학과"
placeholder="선택하세요"
onChange={({ selectedValue }) => {
field.onChange(selectedValue);
}}>
<React.Fragment key={`${field}-option`}>
{departmentList.map((department, index) => {
return (
<DropDownOption
key={`${index}-dropdownOption`}
text={department.name}
value={department.code}
/>
);
})}
</React.Fragment>
</DropDown>
<InputFormWrapper>
<DropDown
{...field}
label="학과"
placeholder="선택하세요"
onChange={({ selectedValue }) => {
field.onChange(selectedValue);
}}>
<React.Fragment key={`${field}-option`}>
{departmentList.map((department, index) => {
return (
<DropDownOption
key={`${index}-dropdownOption`}
text={department.name}
value={department.code}
/>
);
})}
</React.Fragment>
</DropDown>
</InputFormWrapper>
)}
/>
);
};

export default DepartmentSelect;

const InputFormWrapper = styled.div`
height: 84.8px;
width: 100%;
`;
64 changes: 0 additions & 64 deletions src/components/chatbot/ChannelService.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/components/chatbot/Chatbot.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions src/hooks/mutation/useSendStudentEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ export default function useSendStudentEmail() {
onSuccess: () => {
toast('메일 전송이 완료되었습니다.');
navigation(RoutePath.Dashboard);
},
onError: (error) => {
toast(error.message);
}
});

Expand Down
1 change: 0 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { GlobalStyle } from '@/styles';
import { Global } from '@emotion/react';
import { ToastContainer } from 'react-toastify';
import './styles/styles.scss';
import Chatbot from '@/components/chatbot/Chatbot';

const queryClient = new QueryClient({
defaultOptions: {
Expand Down
Loading

0 comments on commit 44619d7

Please sign in to comment.