This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { connect } from "react-redux"; | |
| import { FloatingSelector } from "./FloatingSelector"; | |
| import { Input } from "./Input"; | |
| export class ExampleComponent extends React.PureComponent { | |
| constructor(props) { | |
| super(props); | |
| this.state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import styled from "@emotion/styled"; | |
| export const Checkbox = styled.input` | |
| display: none; | |
| visibility: hidden; | |
| `; | |
| export const Label = styled.label` | |
| display: flex; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { handleActions } from "redux-actions"; | |
| import { actions as a } from "../../constants"; | |
| const defaultState = { | |
| userId: undefined, | |
| loading: false, | |
| error: undefined | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { PropTypes } from "prop-types"; | |
| const sizes = { | |
| small: 10, | |
| medium: 20, | |
| large: 30, | |
| extraLarge: 50 | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { PropTypes } from "prop-types"; | |
| const sizes = { | |
| small: 10, | |
| medium: 20, | |
| large: 30 | |
| }; | |
| export class SpacerVertical extends React.PureComponent { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import TopBarComponent from "./TopBar"; | |
| export const withTopBar = WrappedComponent => props => { | |
| return ( | |
| <React.Fragment> | |
| <TopBarComponent /> | |
| <WrappedComponent {...props} /> | |
| </React.Fragment> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| import { | |
| Path, | |
| Axis, | |
| Label, | |
| Points, | |
| SmallDash, | |
| BigDash, | |
| MainSvg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import styled from "@emotion/styled"; | |
| export const Loading = styled.div` | |
| position: fixed; | |
| z-index: 999; | |
| height: 2em; | |
| width: 2em; | |
| overflow: visible; | |
| margin: auto; | |
| top: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from "react"; | |
| export class ErrorBoundary extends React.PureComponent { | |
| constructor(props) { | |
| super(props); | |
| this.state = { hasError: false }; | |
| } | |
| componentDidCatch(error, info) { | |
| const { spy } = this.props; |
NewerOlder