const React = require('react'); const ReactIntl = require('react-intl'); const ReactRedux = require('react-redux'); const ReactRouter = require('react-router'); const Styled = require('styled-components'); const Container = require('@ui/components/container'); const Dashboard = require('@containers/dashboard'); const Li = require('@ui/components/horizontal-list/li'); const Org = require('@containers/org'); const Redirect = require('@components/redirect'); const Ul = require('@ui/components/horizontal-list/ul'); const { FormattedMessage } = ReactIntl; const { connect } = ReactRedux; const { Link, Match, Miss } = ReactRouter; const { default: styled } = Styled; const StyledNav = styled.div` background-color: #f2f2f2; `; const Home = ({ orgs = [], pathname = '/', user = {} }) => { const navLinks = orgs.map(({ id, name }) => { const to = `/${id}`; return (