Skip to content

Commit

Permalink
Merge pull request #377 from Ludo-SMP/feat/SP-724-apply-mypage-design
Browse files Browse the repository at this point in the history
SP-724 마이페이지에서 작성된 모집공고 정보를 확인하는 모달 구현
  • Loading branch information
SungHyun627 authored Sep 12, 2024
2 parents 3241960 + f639c39 commit 5493fd9
Show file tree
Hide file tree
Showing 14 changed files with 633 additions and 182 deletions.
2 changes: 1 addition & 1 deletion src/Apis/recruitment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ export const getRecruitmentDetail = (recruitmentId: number): Promise<{ data: { d
export const deleteRecruitment = (studyId: number): Promise<{ data: { data: RecruitmentDetail } }> =>
httpClient.get(API_END_POINT.DELETE_RECRUITMENT(studyId));

// ???
// 모집공고 마감
export const closeRecruitment = (studyId: number) =>
httpClient.patch(API_END_POINT.CLOSE_RECRUITMENT(studyId), null, { params: { status: 'RECRUITED' } });
19 changes: 0 additions & 19 deletions src/Assets/Profile.stories.ts

This file was deleted.

3 changes: 3 additions & 0 deletions src/Assets/icons/clip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Assets/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/Assets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export { default as NextArrow } from './icons/nextArrow.svg?react';
export { default as CreateStudy } from './icons/createstudy.svg?react';
export { default as DefaultStudyThumbnail } from './icons/studyThumbnail.svg';
export { default as SearchRecruitment } from './icons/recruitment.svg?react';
export { default as Clip } from './icons/clip.svg?react';

// Logo
export { default as BlankLogo } from './images/blank-logo.webp';
Expand All @@ -47,7 +48,7 @@ export { default as NotFound } from './images/character1.webp';
export { default as LoginFail } from './images/character2.webp';
export { default as SignUpFail } from './images/character3.webp';
export { default as ErrorBoundaryImage } from './images/character4.webp';
export { default as LoadingImage } from './images/character1.webp';
export { default as LoadingImage } from './images/loading.gif';

// Background
export { default as SignUpBackground } from './images/background1.webp';
Expand Down
25 changes: 1 addition & 24 deletions src/Components/LoadingSpinner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styled from 'styled-components';
export const LoadingSpinner = () => {
return (
<LoadingSpinnerBox>
<SpinnerImg src={LoadingImage} alt="loading spinner" />
<img src={LoadingImage} alt="loading spinner" />
</LoadingSpinnerBox>
);
};
Expand All @@ -19,26 +19,3 @@ const LoadingSpinnerBox = styled.div`
justify-content: center;
align-items: center;
`;

const SpinnerImg = styled.img`
opacity: 0.7;
animation: rotateImage 1.2s linear infinite;
transform-origin: 50% 50%;
@keyframes rotateImage {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(20deg);
}
50% {
transform: rotate(0deg);
}
75% {
transform: rotate(-20deg);
}
100% {
transform: rotate(0deg);
}
}
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Meta, StoryObj } from '@storybook/react';
import { RecruitmentDetailModal } from '.';

const meta = {
component: RecruitmentDetailModal,
args: {
handleModal: () => {},
recruitmentId: 1,
},
} satisfies Meta<typeof RecruitmentDetailModal>;

export default meta;

type Story = StoryObj<typeof meta>;

export const Primary: Story = {};
Loading

0 comments on commit 5493fd9

Please sign in to comment.