• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

LouisBrunner / dnd-multi-backend / 8513725546

01 Apr 2024 09:04PM CUT coverage: 98.498%. Remained the same
8513725546

push

github

web-flow
chore(deps-dev): bump eslint-plugin-react from 7.33.2 to 7.34.1 (#278)

Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.33.2 to 7.34.1.
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.34.1/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.33.2...v7.34.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

63 of 67 branches covered (94.03%)

Branch coverage included in aggregate %.

265 of 266 relevant lines covered (99.62%)

37.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/packages/react-dnd-multi-backend/src/components/DndProvider.tsx
1
import React, {useState, createContext, ReactNode} from 'react'
120✔
2
import { DndProvider as ReactDndProvider } from 'react-dnd'
15✔
3
import { MultiBackend, MultiBackendOptions } from 'dnd-multi-backend'
15✔
4

5
export const PreviewPortalContext = createContext<Element | null>(null)
15✔
6

7
export type DndProviderProps = {
8
  context?: any, // eslint-disable-line @typescript-eslint/no-explicit-any
9
  options: MultiBackendOptions,
10
  children?: ReactNode,
11
  debugMode?: boolean,
12
  portal?: Element,
13
}
14

15
export const DndProvider = ({portal, ...props}: DndProviderProps): JSX.Element => {
15✔
16
  const [previewPortal, setPreviewPortal] = useState<Element | null>(null)
21✔
17

18
  return (
21✔
19
    <PreviewPortalContext.Provider value={portal ?? previewPortal}>
21✔
20
      <ReactDndProvider backend={MultiBackend} {...props} />
21
      {portal ? null : <div ref={setPreviewPortal} />}
21✔
22
    </PreviewPortalContext.Provider>
23
  )
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc