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

mizchi / next-editor / 1409

pending completion
1409

Pull #349

circleci

web-flow
chore(deps): update babel monorepo
Pull Request #349: chore(deps): update babel monorepo

95 of 450 branches covered (21.11%)

Branch coverage included in aggregate %.

967 of 2058 relevant lines covered (46.99%)

1.93 hits per line

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

0.0
/src/ui/components/utils/ThemeProvider.tsx
1
import React from "react"
×
2
import { ThemeProvider as StyledThemeProvider } from "styled-components"
×
3
import { connector } from "../../actionCreators"
×
4
import { RootState } from "../../reducers"
5
import DarkTheme from "../../themes/dark"
×
6
import DefaultTheme from "../../themes/default"
×
7

8
const ThemeMap: any = {
×
9
  default: DefaultTheme,
10
  dark: DarkTheme
11
}
12

13
export const ThemeProvider = connector(
×
14
  (state: RootState) => ({
×
15
    theme: state.config.theme
16
  }),
17
  _a => {
18
    return {}
×
19
  }
20
)(function ThemeProviderImpl({
21
  children,
22
  theme
23
}: {
24
  theme: string
25
  children: React.ReactNode
26
}) {
27
  return (
×
28
    <div
29
      className={theme === "dark" ? "bp3-dark" : "bp3-light"}
×
30
      style={{
31
        width: "100%",
32
        height: "100%",
33
        fontFamily: "Inconsolata"
34
      }}
35
    >
36
      <StyledThemeProvider theme={ThemeMap[theme] || DefaultTheme}>
×
37
        {children}
38
      </StyledThemeProvider>
39
    </div>
40
  )
41
})
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