Skip to content

Commit

Permalink
오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ipcgrdn committed Dec 23, 2024
1 parent 6c21352 commit c210452
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/app/user/[userId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
DropdownMenuRadioItem,
DropdownMenuTrigger,
DropdownMenuItem,
DropdownMenuLabel,
DropdownMenuSeparator,
} from "@/components/ui/dropdown-menu";
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
Expand Down Expand Up @@ -108,8 +106,6 @@ export default function UserPage() {
<IconDotsVertical className="size-6 hover:opacity-75" />
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56">
<DropdownMenuLabel>프로필 설정</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuItem onClick={profileEditModal.onOpen}>
프로필 편집
</DropdownMenuItem>
Expand Down Expand Up @@ -146,7 +142,7 @@ export default function UserPage() {
</div>
</div>

<div className="flex w-full h-28 md:h-full font-light text-sm items-start md:items-center whitespace-pre-line leading-normal overflow-auto">
<div className="flex w-full h-28 md:h-full text-sm items-start md:items-center whitespace-pre-line leading-normal overflow-auto">
{profileData?.description}
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/modal/album/albumEdit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ const AlbumEditModal = () => {
const handleSuccess = () => {
toast.success("앨범이 수정되었습니다.");
reset();
albumEditModal.onClose();
router.refresh();
albumEditModal.onClose();
};

const handleError = (error: unknown) => {
Expand Down Expand Up @@ -178,7 +178,7 @@ const AlbumEditModal = () => {
<span className="text-gray-400 truncate max-w-[70%]">
{file ? file.name : "🖼️ 앨범 커버"}
</span>
<span className="bg-black text-white dark:bg-white dark:text-black px-4 py-1 rounded-lg text-sm">
<span className="bg-black text-muted-foreground dark:bg-white dark:text-black px-4 py-1 rounded-lg text-sm">
커버 변경
</span>
</div>
Expand All @@ -188,7 +188,7 @@ const AlbumEditModal = () => {
disabled={isLoading}
{...register("title", { required: true })}
placeholder="🚨 앨범 제목"
className="w-full h-14"
className="w-full h-14 placeholder:text-muted-foreground dark:placeholder:text-muted-foreground-dark"
/>
<p className={errors.title ? "text-red-500 text-xs" : "hidden"}>
{errors.title ? String(errors.title.message) : null}
Expand All @@ -198,7 +198,7 @@ const AlbumEditModal = () => {
disabled={isLoading}
{...register("description", { required: false })}
placeholder="📝 소개"
className="w-full h-full resize-none"
className="w-full h-full resize-none placeholder:text-muted-foreground dark:placeholder:text-muted-foreground-dark"
/>
<p className={errors.description ? "text-red-500 text-xs" : "hidden"}>
{errors.description ? String(errors.description.message) : null}
Expand Down
2 changes: 0 additions & 2 deletions src/components/modal/playlist-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ const PlaylistModal = () => {
throw new Error("플레이리스트 생성에 실패하였습니다.");
}

console.log(`플레이리스트: ${values}`);

toast.success("플레이리스트가 생성되었습니다!");
reset();
playlistModal.onClose();
Expand Down
4 changes: 3 additions & 1 deletion src/features/main/bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ import { useEffect, useRef, useState } from "react";
import { useAuth } from "@/provider/authProvider";
import { useUser } from "@/provider/userProvider";
import { Profile, getProfile } from "@/services/profileService";
import { useProfile } from "@/provider/profileProvider";

export function Bar() {
const router = useRouter();
const isLargeScreen = useMediaQuery({ query: "(min-width: 768px)" });

const { isLoggedIn } = useAuth();
const { user } = useUser();
const { uuid} = useProfile();

const searchInput = useSearchInput();
const notiModal = useNotiModal();
Expand Down Expand Up @@ -127,7 +129,7 @@ export function Bar() {
if (!isLoggedIn) {
signinModal.onOpen();
} else {
router.push(`/user/${user?.uuid}`);
router.push(`/user/${uuid}`);
}
},
},
Expand Down

0 comments on commit c210452

Please sign in to comment.