This file contains 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 * as React from 'react'; | |
export const getNodeArray = <Props = any>( | |
components: React.ReactNode, | |
filter?: string | React.ComponentClass<any> | React.SFC<any>, | |
) => { | |
let result = React.Children.toArray(components).map(React.Children.only) as React.ReactElement<Props>[]; | |
if (filter) { | |
result = result.filter((c) => { |
This file contains 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 * as React from 'react'; | |
import cx from 'classnames'; | |
import * as styles from './styles.scss'; | |
import { utils } from '@shared/utils'; | |
import { TabBody, ITabBodyProps } from './TabBody'; | |
import { TabHead, ITabHeadProps } from './TabHead'; | |
import { Tab, ITabProps } from './Tab'; | |
interface IProps { |
This file contains 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 * as React from 'react'; | |
import { NavLink } from 'react-router-dom'; | |
const styles = require('./landingPage'); | |
const notebook = require('../../images/notebook.png'); | |
export default class AdminPart extends React.PureComponent<{}, any> { | |
render() { | |
return ( | |
<div className={styles.adminPart}> |
This file contains 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 * as React from 'react'; | |
import { Helmet } from 'react-helmet'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import { Switch, Route } from 'react-router-dom'; | |
import memoize from 'memoize-one'; | |
import Page from 'src/app/containers/Page'; | |
import Preloader from 'src/commonComponents/Preloader'; | |
import { FotoPointHeader } from 'src/fotoPoints/components/FotoPointHeader'; | |
import FotoPointList from 'src/fotoPoints/components/FotoPointsList'; |
This file contains 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 { all, call, put, select, takeEvery } from 'redux-saga/effects'; | |
import { showError, showSuccess, hideSuccess } from 'src/app/containers/App/duck'; | |
import { callAPI } from 'src/app/containers/App/saga'; | |
import { getCompanyId } from 'src/app/containers/App/selectors'; | |
import { API } from 'src/utils'; | |
import * as duck from './duck'; | |
import { getUserRole } from 'src/app/containers/Page/selectors'; | |
import { getFotoServices } from './selectors'; | |
const get = require('lodash/get'); |
This file contains 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 * as React from 'react'; | |
import { Helmet } from 'react-helmet'; | |
import { connect } from 'react-redux'; | |
import { bindActionCreators } from 'redux'; | |
import { Switch, Route } from 'react-router-dom'; | |
import memoize from 'memoize-one'; | |
import Page from 'src/app/containers/Page'; | |
import Preloader from 'src/commonComponents/Preloader'; | |
import { FotoPointHeader } from 'src/fotoPoints/components/FotoPointHeader'; | |
import FotoPointList from 'src/fotoPoints/components/FotoPointsList'; |