Skip to content
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
22 changes: 19 additions & 3 deletions pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion src/shared/ui/avatars/avatars.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { Avatar, AvatarGroup, type AvatarProps } from "./avatars";

Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/empty_states/empty-states.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Meta, StoryObj } from "@storybook/react";
import type { Meta, StoryObj } from "@storybook/react-vite";
import { EmptyState } from "./empty-states";

const meta = {
Expand Down
11 changes: 9 additions & 2 deletions src/shared/ui/empty_states/empty-states.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import React from "react";
// 1. 공통 아이콘 Import 추가
import { FileTextIcon, SearchIcon, BellIcon, AlertCircleIcon, LockIcon, ClockIcon } from "../icons";
import {
FileTextAltIcon,
SearchIcon,
BellIcon,
AlertCircleIcon,
LockIcon,
ClockIcon,
} from "../icons";
import { Button } from "../button/button";

// ----------------------------------------------------------------------
Expand Down Expand Up @@ -44,7 +51,7 @@ type VariantConfig = {
const VARIANT_MAP: Record<EmptyStateVariant, VariantConfig> = {
"no-content": {
title: "아직 게시물이 없습니다",
icon: <FileTextIcon className="w-full h-full" />,
icon: <FileTextAltIcon className="w-full h-full" />,
iconColorClass: "text-[color:var(--color-primary-200,#B3D1F7)]",
},
"no-results": {
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/file-uploader/file-uploader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useRef, useState } from "react";
import { UploadIcon, ImageIcon, XIcon, FileTextIcon } from "@/shared/ui/icons";
import { UploadIcon, ImageIcon, XIcon, FileTextAltIcon } from "@/shared/ui/icons";
import { Button } from "@/shared/ui/button/button";

// --- Types ---
Expand Down Expand Up @@ -156,7 +156,7 @@ export const FileListItem = ({ file, onRemove, className }: FileListItemProps) =
>
<div className="flex items-center gap-3">
<div className="text-[var(--color-gray-400,#999)]">
{file.type?.includes("image") ? <ImageIcon size={20} /> : <FileTextIcon size={20} />}
{file.type?.includes("image") ? <ImageIcon size={20} /> : <FileTextAltIcon size={20} />}
</div>
<div>
<p className="text-[14px] font-medium text-[var(--color-gray-800,#333)] truncate max-w-[200px]">
Expand Down
4 changes: 2 additions & 2 deletions src/shared/ui/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ export const UserSolidIcon: React.FC<IconProps> = ({ size = 24, ...props }) => (
</svg>
);

// File Text 아이콘 (Empty States 컴포넌트 사용)
export const FileTextIcon: React.FC<IconProps> = ({ size = 24, ...props }) => (
// File Text 아이콘 (Empty States 전용 스타일)
export const FileTextAltIcon: React.FC<IconProps> = ({ size = 24, ...props }) => (
Comment thread
sebeeeen marked this conversation as resolved.
<svg
width={size}
height={size}
Expand Down