Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix: Return null instead of Fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
usame-algan committed Mar 11, 2022
1 parent 91ba1a6 commit ab3db4e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
import 'src/components/AppLayout/Header/components/ProviderDetails/hidePairingModule.css'
import { ReactElement } from 'react'
import { useEffect } from 'react'

const HidePairingModule = (): ReactElement => <></>
const HIDE_PAIRING_STYLE = '.bn-onboard-modal-select-wallets li:first-of-type {display: none;}'

const HidePairingModule = (): null => {
useEffect(() => {
const style = document.createElement('style')
style.innerHTML = HIDE_PAIRING_STYLE
document.head.appendChild(style)

return () => {
style.remove()
}
}, [])

return null
}

export default HidePairingModule

This file was deleted.

0 comments on commit ab3db4e

Please sign in to comment.