Skip to content

Commit

Permalink
Merge pull request #9 from oslabs-beta/CSSExport
Browse files Browse the repository at this point in the history
added comments
  • Loading branch information
rachelk585 authored Apr 27, 2023
2 parents 8a7675f + 3599bfb commit ed6d2e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/components/bottom/StylesEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ import Fab from '@mui/material/Fab';
import SaveIcon from '@mui/icons-material/Save';
import cssRefresher from '../../helperFunctions/cssRefresh';

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

const StylesEditor: React.FC<{
theme: string | null;
setTheme: any | null;
}> = ({ theme, setTheme }) => {
const wrapper = useRef();
const [css, setCss] = useState();

//now using variable and storing CSS in localStorage to retain CSS upon dismount of the component
let currentCss = localStorage.getItem('css');

//This was being used for the demo
Expand Down

0 comments on commit ed6d2e2

Please sign in to comment.