Skip to content

Commit

Permalink
chore: removed pointless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Jul 25, 2023
1 parent 6f0f57f commit c3ceb04
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/context/ModalProvider/ModalProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import { AddAccountModal } from 'pages/Accounts/AddAccountModal'
import { createModalProviderInner } from './ModalContainer'
import type { Modals } from './types'

// to add new modals, add a new key: value pair below
// the key is the name returned by the hook and the
// component is the modal to be rendered
const MODALS: Modals = {
receive: ReceiveModal,
qrCode: QrCodeModal,
Expand All @@ -43,7 +40,6 @@ const MODALS: Modals = {
feedbackSupport: FeedbackAndSupport,
} as const

// provider
export const createModalProvider = () => {
let CombinedProvider = ({ children }: { children: React.ReactNode }) => <>{children}</>

Expand Down
4 changes: 0 additions & 4 deletions src/context/ModalProvider/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// to add new modals, add a new key: value pair below
// the key is the name returned by the hook and the

import type { FC } from 'react'
import type { BackupPassphraseModalProps } from 'components/Layout/Header/NavBar/Native/BackupPassphraseModal/BackupPassphraseModal'
import type { AssetSearchModalProps } from 'components/Modals/AssetSearch/AssetSearchModal'
Expand All @@ -13,7 +10,6 @@ import type { SendModalProps } from 'components/Modals/Send/Send'

import type { CLOSE_MODAL, OPEN_MODAL } from './constants'

// component is the modal to be rendered
export type Modals = {
receive: ({ asset, accountId }: ReceivePropsType) => JSX.Element
qrCode: ({ assetId, accountId }: QrCodeModalProps) => JSX.Element
Expand Down

0 comments on commit c3ceb04

Please sign in to comment.