Skip to content

Commit

Permalink
style(tx-builder-theme-provider): use destructor assignment in the fu…
Browse files Browse the repository at this point in the history
…nction arguments
  • Loading branch information
clovisdasilvaneto committed Oct 9, 2024
1 parent bc238d6 commit 67adfbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/tx-builder/src/theme/SafeThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const SafeThemeProvider: FC<SafeThemeProviderProps> = ({ children }) => {
'*',
)

window.addEventListener('message', function (event) {
if (!event.data?.data.hasOwnProperty('darkMode')) return
window.addEventListener('message', function ({ data: eventData }) {
if (!eventData?.data.hasOwnProperty('darkMode')) return

setDarkMode(event.data?.data.darkMode)
setDarkMode(eventData?.data.darkMode)
})
}, [])

Expand Down

0 comments on commit 67adfbf

Please sign in to comment.