-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created a toggle function that allows users to switch between dark mode and light mode. #17
Conversation
…llows users to toggle and switch between dark and light mode
Created a toggle function that allows users to switch between dark mode and light mode. The way it works:
|
…y color to buttons and deleted the detectTheme function
src/app/EmitEventModal.tsx
Outdated
@@ -3,6 +3,7 @@ import { Button, Modal, ModalHeader, ModalBody, ModalFooter, FormGroup, Label, I | |||
import { jsx } from '@emotion/core'; | |||
import { emitEvent } from './commands'; | |||
import { checkJson } from './utils'; | |||
import { appSectionView } from './styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused import.
src/app/UploadPilets.tsx
Outdated
@@ -2,6 +2,7 @@ import { FC, ChangeEvent, useState } from 'react'; | |||
import { CustomInput, InputGroup, InputGroupAddon, Button } from 'reactstrap'; | |||
import { jsx } from '@emotion/core'; | |||
import { injectPiletsFromUrl } from './utils'; | |||
import { appSectionView } from './styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks 🍻
Created a toggle function that allows users to switch between dark mode and light mode.
The way it works: