Skip to content

Commit

Permalink
Merge pull request codestates-seb#379 from codestates-seb/develop
Browse files Browse the repository at this point in the history
[FE] ๐Ÿš€ ๋ฐฐํฌ๋ฅผ ์œ„ํ•œ ๋ธŒ๋žœ์น˜ ๋ณ‘ํ•ฉ
  • Loading branch information
nalsae authored Jan 11, 2024
2 parents 28c4726 + 20f3f34 commit 3348b9c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 19 deletions.
24 changes: 8 additions & 16 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/src/app/garden/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import {
EmptyInventoryModal,
GuestbookModal,
} from '@/components/garden';
import { NotificationButton } from '@/components/common';

import { InquiryButton } from '@/components/inquiry';

interface GardenProps {
Expand Down
2 changes: 2 additions & 0 deletions client/src/app/leaf/[userId]/[leafId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
ShareModal,
Footer,
Screws,
NotificationButton,
} from '@/components/common';

import { DiaryDataInfo } from '@/types/data';
Expand Down Expand Up @@ -118,6 +119,7 @@ export default function Leaf({ params }: LeafProps) {
/>
))}
</motion.div>
<NotificationButton />
<Footer />
</>
);
Expand Down
1 change: 1 addition & 0 deletions client/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import ScrollDownButton from '@/components/main/ScrollDownButton';
import { InquiryButton } from '@/components/inquiry';

import { getScrollTop } from '@/utils/getScrollTop';
import { NotificationButton } from '@/components/common';

export default function Home() {
const isClient = useClient();
Expand Down
1 change: 0 additions & 1 deletion client/src/app/post/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default function Post({ params }: PostProps) {
window.scrollTo(0, 0);
return router.refresh();
});

useEffect(() => {
if (post?.comments) setComments(post?.comments);
}, [post?.comments]);
Expand Down
2 changes: 1 addition & 1 deletion client/src/constants/contents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const DIARY_FORM_TEXT = {
};

export const IMAGE_UPLOAD_TEXT = {
fileSizeWarn: '2mb ์ดํ•˜ ์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”.',
fileSizeWarn: '4mb ์ดํ•˜ ์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”.',
noImageUploadError: '์ด๋ฏธ์ง€๋ฅผ ํ•„์ˆ˜๋กœ ๋“ฑ๋กํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.',
imageUpload: '์ด๋ฏธ์ง€ ๋“ฑ๋ก',
};
Expand Down
2 changes: 1 addition & 1 deletion client/src/utils/isValidFileSize.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function isValidFileSize(file: File) {
if (file && file.type.startsWith('image/')) {
if (file.size <= 2 * 1024 * 1024) {
if (file.size <= 4 * 1024 * 1024) {
return true;
}
}
Expand Down

0 comments on commit 3348b9c

Please sign in to comment.