mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 02:31:18 +01:00
♻️ Show edit buttons only when user is admin
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
interface EditModeInformationStore {
|
||||
editModeEnabled: boolean;
|
||||
setDisabled: () => void;
|
||||
}
|
||||
|
||||
export const useEditModeInformationStore = create<EditModeInformationStore>((set) => ({
|
||||
editModeEnabled: false,
|
||||
setDisabled: () => set(() => ({ editModeEnabled: true })),
|
||||
}));
|
||||
Reference in New Issue
Block a user