File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/components/bottom Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ import Fab from '@mui/material/Fab';
12
12
import SaveIcon from '@mui/icons-material/Save' ;
13
13
import cssRefresher from '../../helperFunctions/cssRefresh' ;
14
14
15
- const serverURL = 'https://reactype-caret.herokuapp.com' ;
15
+ //This was being used for the demo
16
+ // const serverURL = 'https://reactype-caret.herokuapp.com';
16
17
17
18
const StylesEditor : React . FC < {
18
19
theme : string | null ;
19
20
setTheme : any | null ;
20
21
} > = ( { theme, setTheme } ) => {
21
22
const wrapper = useRef ( ) ;
22
23
const [ css , setCss ] = useState ( ) ;
23
-
24
+ //now using variable and storing CSS in localStorage to retain CSS upon dismount of the component
24
25
let currentCss = localStorage . getItem ( 'css' ) ;
25
26
26
27
//This was being used for the demo
You can’t perform that action at this time.
0 commit comments