mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(hook): add markers state and setter to useProblem hook
This commit is contained in:
parent
a7d0bc54bc
commit
a55ef88745
@ -39,11 +39,13 @@ export const useProblem = () => {
|
|||||||
const {
|
const {
|
||||||
hydrated,
|
hydrated,
|
||||||
editor,
|
editor,
|
||||||
|
markers,
|
||||||
webSocket,
|
webSocket,
|
||||||
globalLang,
|
globalLang,
|
||||||
currentLang,
|
currentLang,
|
||||||
currentValue,
|
currentValue,
|
||||||
setEditor,
|
setEditor,
|
||||||
|
setMarkers,
|
||||||
setWebSocket,
|
setWebSocket,
|
||||||
setGlobalLang,
|
setGlobalLang,
|
||||||
setCurrentLang,
|
setCurrentLang,
|
||||||
@ -112,8 +114,10 @@ export const useProblem = () => {
|
|||||||
return {
|
return {
|
||||||
hydrated,
|
hydrated,
|
||||||
editor,
|
editor,
|
||||||
|
markers,
|
||||||
webSocket,
|
webSocket,
|
||||||
setEditor,
|
setEditor,
|
||||||
|
setMarkers,
|
||||||
setWebSocket,
|
setWebSocket,
|
||||||
globalLang,
|
globalLang,
|
||||||
currentLang,
|
currentLang,
|
||||||
|
Loading…
Reference in New Issue
Block a user