Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix props type annotation #341

Merged
merged 7 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useApplyStore from 'Stores/ApplyStoreContainer';
import * as S from './style';

const ApplyPostModal: React.FC = () => {
const ApplyPostModal = () => {
const { showApplyPostModal } = useApplyStore();

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useApplyStore from 'Stores/ApplyStoreContainer';
import * as S from './style';

const DepartmentModal: React.FC = () => {
const DepartmentModal = () => {
const {
showDepartmentModal,
setShowDepartmentModal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DaumPostcode from 'react-daum-postcode';
import { css, Global } from '@emotion/react';
import useApplyStore from 'Stores/ApplyStoreContainer';

const FindAddressModal: React.FC = () => {
const FindAddressModal = () => {
const { showFindAddressModal, setShowFindAddressModal, setApplicantAddress } =
useApplyStore();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface schoolType {
SCHUL_KND_SC_NM: '고등학교' | '중학교' | '초등학교';
}

const FindSchoolModal: React.FC = () => {
const FindSchoolModal = () => {
const {
showFindSchoolModal,
setShowFindSchoolModal,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import * as S from './style';

const MainpageHeader: React.FC = () => {
const MainpageHeader = () => {
const headerElement = [
'지원자 번호',
'서류여부',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import * as S from './style';
import useStore from 'Stores/StoreContainer';
import { CommonApplicationResponseType } from 'type/application';

const ModalSubmit = ({ data }: { data: CommonApplicationResponseType }) => {
interface Props {
data: CommonApplicationResponseType;
}
frorong marked this conversation as resolved.
Show resolved Hide resolved

const ModalSubmit: React.FC<Props> = ({ data }) => {
const { setSelectedOption, selectedOption } = useStore();
useEffect(() => {
setSelectedOption(data.isPrintsArrived ? 1 : 2);
Expand Down
2 changes: 1 addition & 1 deletion packages/hello-gsm-admin/src/components/SideBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import auth from 'Api/auth';
import { useRouter } from 'next/router';
import { css } from '@emotion/react';

const SlideBar: React.FC = () => {
const SlideBar = () => {
const { push, pathname } = useRouter();
return (
<S.SideBar className="sideBar">
Expand Down
2 changes: 1 addition & 1 deletion packages/hello-gsm/src/components/BubbleButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface BubbleButtonProps {
children: React.ReactNode;
}

const BubbleButton = ({ children, link }: BubbleButtonProps) => {
const BubbleButton: React.FC<BubbleButtonProps> = ({ children, link }) => {
return (
<Link href={link} passHref>
<S.ToCalculator>{children}</S.ToCalculator>
Expand Down
2 changes: 1 addition & 1 deletion packages/hello-gsm/src/components/Common/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SideBar } from 'components';
import { toast } from 'react-toastify';
import { isFinalEnd } from 'shared/Date/afterApply';

const Header: React.FC = () => {
const Header = () => {
const { pathname } = useRouter();
const [isLogoutClicked, setIsLogoutClicked] = useState<boolean>(false);
const [isFinalPeriod, setIsFinalPeriod] = useState<boolean>(isFinalEnd);
Expand Down
2 changes: 1 addition & 1 deletion packages/hello-gsm/src/components/Enterprises/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import * as S from './style';
import { css } from '@emotion/react';

const Enterprises: React.FC = () => {
const Enterprises = () => {
const enterprises = [
[
'/Enterprises/Hancom.jpg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useStore from 'Stores/StoreContainer';
import * as S from './style';

const ApplyPostModal: React.FC = () => {
const ApplyPostModal = () => {
const { showApplyPostModal } = useStore();

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import useStore from 'Stores/StoreContainer';
import * as S from './style';

const DepartmentModal: React.FC = () => {
const DepartmentModal = () => {
const {
showDepartmentModal,
setShowDepartmentModal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DaumPostcode from 'react-daum-postcode';
import { css, Global } from '@emotion/react';
import useStore from 'Stores/StoreContainer';

const FindAddressModal: React.FC = () => {
const FindAddressModal = () => {
const { showFindAddressModal, setShowFindAddressModal, setApplicantAddress } =
useStore();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface schoolType {
SCHUL_KND_SC_NM: '고등학교' | '중학교' | '초등학교';
}

const FindSchoolModal: React.FC = () => {
const FindSchoolModal = () => {
const {
showFindSchoolModal,
setShowFindSchoolModal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import * as S from './style';
import useStore from 'Stores/StoreContainer';

const MainNonLoginModal: React.FC = () => {
const MainNonLoginModal = () => {
const { setShowMainNonLoginModal } = useStore();

const invisible = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { css } from '@emotion/react';
import application from 'Api/application';
import { useRouter } from 'next/router';
import Link from 'next/link';
const MypageModal: React.FC = () => {
const MypageModal = () => {
const { setShowMypageModal, mypageModalContent, setShowMypageSuccessModal } =
useStore();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as S from './style';
import * as I from 'Assets/svg';
import React, { useEffect } from 'react';

const SuccessModal: React.FC = () => {
const SuccessModal = () => {
useEffect(() => {
setTimeout(() => {
window.location.reload();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as S from './style';
import * as I from 'Assets/svg';

const SignUpResultModal: React.FC = () => {
const SignUpResultModal = () => {
return (
<S.Background>
<I.SignUpSuccess />
Expand Down