Skip to content

Commit b488fd6

Browse files
committed
Merge branch 'main' into develop
2 parents 5571c18 + dd9e349 commit b488fd6

File tree

9 files changed

+20
-11
lines changed

9 files changed

+20
-11
lines changed

public/assets/images/og.png

8.89 KB
Loading

src/app/(crew)/_components/category/internal-category/internal-category.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState } from 'react';
22
import type { Meta, StoryFn } from '@storybook/react';
33
import categoryData from '@/src/data/category.json';
4-
import InternalCategory, { InternalCategoryProps } from '.';
4+
import InternalCategory from '.';
55

66
const meta: Meta = {
77
title: 'layout/category',

src/app/(crew)/_components/hero/hero-crew.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function HeroCrew() {
2424
</div>
2525
<Link
2626
href={isAuth ? '/crew/create' : `/login?redirect=${currentPath}`}
27-
className="btn-filled -translate-y-1 items-center rounded-xl px-4 py-2 text-sm font-semibold md:h-11 md:text-lg md:font-bold"
27+
className="btn-filled h-10 -translate-y-1 items-center rounded-xl px-4 py-2 text-base font-semibold md:h-11 md:text-lg md:font-bold"
2828
>
2929
크루 만들기
3030
</Link>

src/app/(crew)/crew/detail/[id]/_components/gathering-detail-modal/container.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ export default function GatheringDetailModalContainer({
3535
close();
3636
onUpdate?.();
3737
} catch (error) {
38-
if (error instanceof ApiError && error.status === 401) {
39-
const redirectUrl = `/login?redirect=${encodeURIComponent(window.location.pathname)}`;
40-
router.push(redirectUrl);
41-
} else {
42-
showToast('참여 중 에러가 발생했습니다.', 'error');
38+
if (error instanceof ApiError) {
39+
if (error.status === 401) {
40+
const redirectUrl = `/login?redirect=${encodeURIComponent(window.location.pathname)}`;
41+
router.push(redirectUrl);
42+
} else if (error.status === 404 && error.message === '크루 멤버가 아닙니다.') {
43+
showToast('크루 멤버가 아닙니다. 크루를 참여해보세요!', 'error');
44+
} else {
45+
showToast('참여 중 에러가 발생했습니다.', 'error');
46+
}
4347
}
4448
}
4549
};

src/app/(crew)/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ export default function HomePage() {
9191
classNames={{
9292
root: 'w-full',
9393
input:
94-
'h-11 w-full rounded-xl border-0 pl-10 font-pretendard text-base font-medium text-gray-800 placeholder:text-gray-500',
94+
'h-10 md:h-11 w-full rounded-xl border-0 pl-10 font-pretendard text-base font-medium text-gray-800 placeholder:text-gray-500',
9595
}}
9696
/>
9797
<Button
9898
type="button"
9999
onClick={handleSearch}
100-
className="btn-filled flex h-11 min-w-21.5 px-7 text-base font-semibold"
100+
className="btn-filled flex h-10 min-w-26 px-7 text-base font-semibold md:h-11 md:text-lg"
101101
>
102102
검색
103103
</Button>

src/components/common/button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Button({
3030
<button
3131
// eslint-disable-next-line react/button-has-type
3232
type={type}
33-
className={`typo-lg-semibold flex items-center justify-center rounded-xl py-2 ${className}`}
33+
className={`flex items-center justify-center rounded-xl py-2 ${className}`}
3434
onClick={onClick}
3535
onMouseEnter={onMouseEnter}
3636
disabled={disabled}

src/components/common/header/container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Header() {
1818
const { data: user } = useUser();
1919

2020
return (
21-
<div className="sticky top-0 z-10">
21+
<div className="sticky top-0 z-50">
2222
<HeaderPresenter
2323
isAuth={isAuth}
2424
handleLogout={handleLogout}

src/components/common/input/file-input-wrap/file-input/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ export default function FileInput({ value, isBlur, error, onChange }: FileInputP
2626
const fileInput = useRef<HTMLInputElement>(null);
2727

2828
const handleFileLoad = (file: File) => {
29+
if (!file || !(file instanceof Blob)) {
30+
return;
31+
}
32+
2933
// 이전 FileReader가 있을 경우 중단
3034
if (fileReader) {
3135
fileReader.abort();

tailwind.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const config: Config = {
3131
7.5: '30px',
3232
12.5: '50px',
3333
21.5: '86px',
34+
26: '104px',
3435
27.5: '110px',
3536
},
3637
width: {

0 commit comments

Comments
 (0)