Skip to content

Commit 3599bfb

Browse files
author
Rachel Kucharski
committed
added comments
1 parent df8c1cb commit 3599bfb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/components/bottom/StylesEditor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ import Fab from '@mui/material/Fab';
1212
import SaveIcon from '@mui/icons-material/Save';
1313
import cssRefresher from '../../helperFunctions/cssRefresh';
1414

15-
const serverURL = 'https://reactype-caret.herokuapp.com';
15+
//This was being used for the demo
16+
// const serverURL = 'https://reactype-caret.herokuapp.com';
1617

1718
const StylesEditor: React.FC<{
1819
theme: string | null;
1920
setTheme: any | null;
2021
}> = ({ theme, setTheme }) => {
2122
const wrapper = useRef();
2223
const [css, setCss] = useState();
23-
24+
//now using variable and storing CSS in localStorage to retain CSS upon dismount of the component
2425
let currentCss = localStorage.getItem('css');
2526

2627
//This was being used for the demo

0 commit comments

Comments
 (0)