mirror of
https://github.com/JOYCEQL/magic-resume.git
synced 2026-07-03 14:07:11 +02:00
perf: remove useless code
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface BaseInfoState {
|
||||
resumeTitle: string;
|
||||
name: string;
|
||||
setName: (name: string) => void;
|
||||
phone: string;
|
||||
setPhone: (phone: string) => void;
|
||||
wechat: string;
|
||||
setWechat: (wechat: string) => void;
|
||||
email: string;
|
||||
setEmail: (email: string) => void;
|
||||
birthday: Date | undefined;
|
||||
setBirthday: (birthday: Date | undefined) => void;
|
||||
jobName: string;
|
||||
setJobName: (jobName: string) => void;
|
||||
}
|
||||
|
||||
const useBaseInfoStore = create<BaseInfoState>((set) => ({
|
||||
resumeTitle: "前端",
|
||||
name: "牛马人",
|
||||
setName: (name: string) => set({ name }),
|
||||
phone: "1234567",
|
||||
setPhone: (phone: string) => set({ phone }),
|
||||
wechat: "niuma",
|
||||
setWechat: (wechat: string) => set({ wechat }),
|
||||
email: "mofang@gmail.com",
|
||||
setEmail: (email: string) => set({ email }),
|
||||
birthday: new Date(2024, 5, 20),
|
||||
setBirthday: (birthday: Date | undefined) => set({ birthday }),
|
||||
jobName: "前端工程师/5年经验",
|
||||
setJobName: (jobName: string) => set({ jobName })
|
||||
}));
|
||||
|
||||
export default useBaseInfoStore;
|
||||
@@ -1,31 +0,0 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface ModelStore {
|
||||
skillContent: string;
|
||||
setSkillContent: (skillContent: string) => void;
|
||||
projectContent: string;
|
||||
setProjectContent: (projectContent: string) => void;
|
||||
workContent: string;
|
||||
setWorkContent: (workContent: string) => void;
|
||||
}
|
||||
|
||||
const useModelStore = create<ModelStore>((set) => ({
|
||||
skillContent: "前端",
|
||||
setSkillContent: (skillContent: string) => set({ skillContent }),
|
||||
projectList: [
|
||||
{
|
||||
name: "项目1",
|
||||
content: "项目1内容"
|
||||
},
|
||||
{
|
||||
name: "项目2",
|
||||
content: "项目2内容"
|
||||
}
|
||||
],
|
||||
projectContent: "项目经历",
|
||||
setProjectContent: (projectContent: string) => set({ projectContent }),
|
||||
workContent: "工作经历",
|
||||
setWorkContent: (workContent: string) => set({ workContent })
|
||||
}));
|
||||
|
||||
export default useModelStore;
|
||||
Reference in New Issue
Block a user