mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added functionality to captcha modal
This commit is contained in:
+12
-3
@@ -1,9 +1,6 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
const useAppStore = create((set) => ({
|
||||
captchaResponse: '',
|
||||
setCaptchaResponse: (response) => set({ captchaResponse: response }),
|
||||
|
||||
bodyStyle: JSON.parse(localStorage.getItem('bodyStyle')) || {
|
||||
background: '#ffe url(/assets/fade.png) top repeat-x',
|
||||
color: 'maroon',
|
||||
@@ -14,11 +11,23 @@ const useAppStore = create((set) => ({
|
||||
set(() => ({ bodyStyle }));
|
||||
},
|
||||
|
||||
captchaResponse: '',
|
||||
setCaptchaResponse: (response) => set({ captchaResponse: response }),
|
||||
|
||||
challengesArray: [],
|
||||
setChallengesArray: (challengesArray) => set({ challengesArray }),
|
||||
|
||||
defaultSubplebbits: [],
|
||||
setDefaultSubplebbits: (subplebbits) => set({ defaultSubplebbits: subplebbits }),
|
||||
|
||||
isSettingsOpen: false,
|
||||
setIsSettingsOpen: (isOpen) => set({ isSettingsOpen: isOpen }),
|
||||
|
||||
pendingComment: '',
|
||||
setPendingComment: (comment) => set({ pendingComment: comment }),
|
||||
|
||||
publishedComment: '',
|
||||
setPublishedComment: (comment) => set({ publishedComment: comment }),
|
||||
|
||||
selectedAddress: '',
|
||||
setSelectedAddress: (address) => set({ selectedAddress: address }),
|
||||
|
||||
Reference in New Issue
Block a user