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

모집정보 확인 모달 적용 후 배포 #378

Merged
merged 12 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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