mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Created share token hook.
This commit is contained in:
parent
4119e80a9a
commit
5a73c224b7
22 changed files with 90 additions and 49 deletions
|
|
@ -19,6 +19,7 @@ const app = createSlice({
|
|||
latest: null,
|
||||
hasUpdate: false,
|
||||
},
|
||||
shareToken: null,
|
||||
},
|
||||
reducers: {
|
||||
setLocale(state, action) {
|
||||
|
|
@ -33,10 +34,14 @@ const app = createSlice({
|
|||
state.versions = action.payload;
|
||||
return state;
|
||||
},
|
||||
setShareToken(state, action) {
|
||||
state.shareToken = action.payload;
|
||||
return state;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { setLocale, setTheme, setVersions } = app.actions;
|
||||
export const { setLocale, setTheme, setVersions, setShareToken } = app.actions;
|
||||
|
||||
export default app.reducer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue