Skip to content

Commit

Permalink
prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-go committed Sep 27, 2023
1 parent 8fd3b33 commit cda05ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/emoji-mart/src/components/Picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class Picker extends Component {

componentWillUnmount() {
this.unregister()
this.darkMedia?.removeListener(this.darkMediaCallback);
this.darkMedia?.removeListener(this.darkMediaCallback)
}

async reset(nextState = {}) {
Expand Down Expand Up @@ -207,7 +207,7 @@ export default class Picker extends Component {
this.darkMedia = matchMedia('(prefers-color-scheme: dark)')
if (this.darkMedia.media.match(/^not/)) return 'light'

this.darkMedia.addListener(this.darkMediaCallback);
this.darkMedia.addListener(this.darkMediaCallback)
}

return this.darkMedia.matches ? 'dark' : 'light'
Expand Down

0 comments on commit cda05ca

Please sign in to comment.