From 78454c2bf20ecb99980005c8b40056591037f2bc Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 14 Sep 2026 20:45:24 +0800 Subject: [PATCH] refactor: delete TemplateToolbar.tsx (#1899 #1900) --- .../template-library/TemplateToolbar.tsx | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx diff --git a/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx b/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx deleted file mode 100644 index 14b7ed847..000000000 --- a/apps/web/src/pages/templates/components/template-library/TemplateToolbar.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import React from "react" -import { SearchOutlined } from "@ant-design/icons" -import type { EditTemplateType } from "../../types/templateLibrary" -import { TEMPLATE_TYPES } from "../../constants/templateLibrary" - -interface TemplateToolbarProps { - searchText: string - onSearchChange: (e: React.ChangeEvent) => void - activeType: EditTemplateType | "全部" - onTypeChange: (type: EditTemplateType | "全部") => void -} - -export const TemplateToolbar: React.FC = ({ - searchText, - onSearchChange, - activeType, - onTypeChange, -}) => { - return ( -
-
- - - - -
-
- {TEMPLATE_TYPES.map((cat) => ( - - ))} -
-
- ) -} - -export default TemplateToolbar