Contextapi fixes
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ COPY package.json /usr/src/app/package.json
|
|||||||
#RUN yarn config set "strict-ssl" false -g
|
#RUN yarn config set "strict-ssl" false -g
|
||||||
#RUN yarn install --network-timeout 1000000
|
#RUN yarn install --network-timeout 1000000
|
||||||
|
|
||||||
RUN npm install --legacy-peer-deps
|
RUN npm install --timeout=60000 --legacy-peer-deps
|
||||||
|
|
||||||
# copy only required files to not trigger rebuilding every time
|
# copy only required files to not trigger rebuilding every time
|
||||||
COPY ./certs /usr/src/app/certs/
|
COPY ./certs /usr/src/app/certs/
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "shuffler",
|
"name": "shuffler",
|
||||||
"homepage": "https://shuffler.io",
|
"homepage": "https://shuffler.io",
|
||||||
"version": "1.4.0",
|
"version": "2.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
||||||
"@codemirror/commands": "^6.2.4",
|
"@codemirror/commands": "^6.2.4",
|
||||||
"@codemirror/lang-python": "^6.1.3",
|
"@codemirror/lang-python": "^6.1.3",
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
|
|
||||||
import { createContext, useState } from 'react';
|
|
||||||
|
|
||||||
export const Context = createContext();
|
|
||||||
|
|
||||||
export const AppContext =(props) => {
|
|
||||||
|
|
||||||
// Left side bar global states
|
|
||||||
const [searchBarModalOpen, setSearchBarModalOpen] = useState(false);
|
|
||||||
const [leftSideBarOpenByClick, setLeftSideBarOpenByClick] = useState(false);
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Context.Provider value={{
|
|
||||||
searchBarModalOpen,
|
|
||||||
setSearchBarModalOpen,
|
|
||||||
leftSideBarOpenByClick,
|
|
||||||
setLeftSideBarOpenByClick
|
|
||||||
}}>
|
|
||||||
{props.children}
|
|
||||||
</Context.Provider>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user