Skip to content

Commit

Permalink
Merge pull request #341 from themoment-team/fix/props
Browse files Browse the repository at this point in the history
Fix props type annotation
  • Loading branch information
frorong committed Dec 31, 2023
2 parents 76c19eb + b3f007f commit 4cc3ed8
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 18 deletions.
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 ModalSubmitProps {
data: CommonApplicationResponseType;
}

const ModalSubmit: React.FC<ModalSubmitProps> = ({ 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

1 comment on commit 4cc3ed8

@vercel
Copy link

@vercel vercel bot commented on 4cc3ed8 Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-hello-gsm – ./packages/hello-gsm

test.hellogsm.kr
test-hello-gsm-the-moment.vercel.app
hello-gsm-test.vercel.app
test-hello-gsm-git-develop-the-moment.vercel.app

Please sign in to comment.