Skip to content

Commit 09f5754

Browse files
committed
修改函数名
1 parent a758e7b commit 09f5754

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/components/Tools/CategorySection.jsx src/components/Tools/ToolsCategorySection.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import ToolSection from './ToolSection';
33

4-
const CategorySection = ({title, categories}) => {
4+
const ToolsCategorySection = ({title, categories}) => {
55
return (
66
<div>
77
<h2 className="mb-6 text-xl font-bold">{title}</h2>
@@ -19,4 +19,4 @@ const CategorySection = ({title, categories}) => {
1919
);
2020
};
2121

22-
export default CategorySection;
22+
export default ToolsCategorySection;

src/components/Tools/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {motion} from "framer-motion";
33
import {Button} from '@douyinfe/semi-ui';
44
import {IoIosArrowBack} from "react-icons/io";
55
import {useNavigate} from "react-router-dom";
6-
import CategorySection from "./CategorySection";
6+
import ToolsCategorySection from "./ToolsCategorySection";
77
import {devices, pageVariants, softwareTools} from "../../config";
88

99
const Tools = () => {
@@ -33,8 +33,8 @@ const Tools = () => {
3333
<p>Tools, software, and devices I use daily</p>
3434
</div>
3535

36-
<CategorySection title="Software Tools" categories={Object.values(softwareTools)}/>
37-
<CategorySection title="Hardware Devices" categories={Object.values(devices)}/>
36+
<ToolsCategorySection title="Software Tools" categories={Object.values(softwareTools)}/>
37+
<ToolsCategorySection title="Hardware Devices" categories={Object.values(devices)}/>
3838
</div>
3939
</motion.div>
4040
);

0 commit comments

Comments
 (0)