Skip to content

Commit

Permalink
Move notifications outside AppBody (#484)
Browse files Browse the repository at this point in the history
* Move notifications outside AppBody

* Reset z-index to original value.
  • Loading branch information
fairlighteth authored Apr 29, 2022
1 parent c28394b commit c811fc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/custom/pages/App/AppMod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import AddressClaimModal from 'components/claim/AddressClaimModal'
import ErrorBoundary from 'components/ErrorBoundary'
import Header from 'components/Header'
import Polling from 'components/Header/Polling'
import Popups from 'components/Popups'

import Web3ReactManager from 'components/Web3ReactManager'
import { useModalOpen, useToggleModal } from 'state/application/hooks'
import { ApplicationModal } from 'state/application/reducer'
Expand Down Expand Up @@ -122,7 +122,6 @@ export default function App(props?: { children?: ReactNode }) {
<Header />
</HeaderWrapper>
<BodyWrapper>
<Popups />
<Polling />
<TopLevelModals />
<ReferralLinkUpdater />
Expand Down
2 changes: 1 addition & 1 deletion src/custom/pages/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const BodyWrapper = styled.div`
align-items: center;
justify-content: center;
flex: auto;
z-index: initial;
z-index: 1;
${({ theme }) => theme.mediaWidth.upToMedium`
padding: 0 10px 0;
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ import AppziButton from 'components/AppziButton'
import { nodeRemoveChildFix } from 'utils/node'
import SideBanner, { BannerType } from 'components/SideBanner'

import Popups from 'components/Popups'

// Node removeChild hackaround
// based on: https://github.com/facebook/react/issues/11538#issuecomment-417504600
nodeRemoveChildFix()
Expand Down

0 comments on commit c811fc5

Please sign in to comment.