Skip to content

Commit

Permalink
fix: list 페이지 내 엑셀, 일괄 수정 버튼 Component 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
egg528 committed Jan 13, 2024
1 parent 55874ea commit b08b82a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
18 changes: 0 additions & 18 deletions admin-ui/src/components/page/sticker/sticker-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import DefaultTable from "@/components/shared/ui/default-table";
import DefaultTableBtn from "@/components/shared/ui/default-table-btn";
import {Alert, Button, Dropdown, MenuProps, message, Popconfirm} from "antd";
import { ColumnsType } from "antd/es/table";
import { Download } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { useCallback, useMemo, useState } from "react";
Expand Down Expand Up @@ -40,16 +39,6 @@ const StickerList = () => {
}
}

const modifyDropdownItems: MenuProps["items"] = useMemo(
() => [
{
key: "statusUpdate",
label: <a onClick={() => console.log(selectedRowKeys)}>상태수정</a>,
},
],
[selectedRowKeys]
);

const rowSelection = {
selectedRowKeys,
onChange: onSelectChange,
Expand Down Expand Up @@ -135,17 +124,10 @@ const StickerList = () => {
{contextHolder}
<DefaultTableBtn className="justify-between">
<div>
<Dropdown disabled={!hasSelected} menu={{ items: modifyDropdownItems }} trigger={["click"]}>
<Button>일괄수정</Button>
</Dropdown>

<span style={{ marginLeft: 8 }}>{hasSelected ? `${selectedRowKeys.length}건 선택` : ""}</span>
</div>

<div className="flex-item-list">
<Button className="btn-with-icon" icon={<Download />}>
엑셀 다운로드
</Button>
<Button type="primary" onClick={() => router.push("/sticker/new")}>
스티커등록
</Button>
Expand Down
17 changes: 0 additions & 17 deletions admin-ui/src/components/page/tag/tag-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,6 @@ const TagList = () => {
}
}

const modifyDropdownItems: MenuProps["items"] = useMemo(
() => [
{
key: "statusUpdate",
label: <a onClick={() => console.log(selectedRowKeys)}>상태수정</a>,
},
],
[selectedRowKeys]
);

const rowSelection = {
selectedRowKeys,
onChange: onSelectChange,
Expand Down Expand Up @@ -114,17 +104,10 @@ const TagList = () => {
{contextHolder}
<DefaultTableBtn className="justify-between">
<div>
<Dropdown disabled={!hasSelected} menu={{ items: modifyDropdownItems }} trigger={["click"]}>
<Button>일괄수정</Button>
</Dropdown>

<span style={{ marginLeft: 8 }}>{hasSelected ? `${selectedRowKeys.length}건 선택` : ""}</span>
</div>

<div className="flex-item-list">
<Button className="btn-with-icon" icon={<Download />}>
엑셀 다운로드
</Button>
<Button type="primary" onClick={() => router.push("/tag/new")}>
태그등록
</Button>
Expand Down

0 comments on commit b08b82a

Please sign in to comment.