border + height section
This commit is contained in:
@@ -273,6 +273,36 @@ export const usePersonalityStore = create<PersonalityStore>((set, get) => ({
|
||||
};
|
||||
}),
|
||||
|
||||
setSectionHeight: (sectionKey: string, height: string) =>
|
||||
set((state) => ({
|
||||
data: {
|
||||
...state.data,
|
||||
[sectionKey]: {
|
||||
...state.data[sectionKey],
|
||||
height,
|
||||
},
|
||||
},
|
||||
})),
|
||||
|
||||
setSectionBorder: (
|
||||
sectionKey: string,
|
||||
border: {
|
||||
width?: string;
|
||||
color?: string;
|
||||
style?: "solid" | "dashed" | "dotted" | "none";
|
||||
sides?: ("top" | "bottom" | "left" | "right")[];
|
||||
}
|
||||
) =>
|
||||
set((state) => ({
|
||||
data: {
|
||||
...state.data,
|
||||
[sectionKey]: {
|
||||
...state.data[sectionKey],
|
||||
border,
|
||||
},
|
||||
},
|
||||
})),
|
||||
|
||||
setItems: (sectionKey: string, items: SectionItemType[]) =>
|
||||
set((state) => ({
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user