Skip to content

Commit

Permalink
Import lichess logo svg
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Jan 9, 2024
1 parent af5434b commit 12b0d11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Games.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Toolbar, OnlineToolbar } from './Toolbar'
import '../node_modules/material-design-icons-iconfont/dist/material-design-icons.css'
import { toDests } from './utils'
import { NOTE_ON, CONTROL_CHANGE, COLORS } from './Launchpad'
import lichess_logo from './svg/lichess-logo.svg'
import lichess_logo_white from './svg/lichess-logo-white.svg'

export const GamesActions = (state, actions) => ({
getGames: async () => {
Expand Down Expand Up @@ -118,9 +120,7 @@ export const Games = (state, actions) => {
},
m('img.svgicon', {
src:
state.theme == 'dark'
? 'static/lichess-logo-white.svg'
: 'static/lichess-logo.svg',
state.theme == 'dark' ? lichess_logo_white : lichess_logo,
})
)
),
Expand Down

0 comments on commit 12b0d11

Please sign in to comment.