Preview: http://dashboards.webkom.co/react/airframe
This commit is contained in:
Tomasz Owczarczyk
2019-08-15 00:54:44 +02:00
parent f975443095
commit 37092d1d6c
626 changed files with 56691 additions and 0 deletions

48
app/routes/Apps/Users/Users.js Executable file
View File

@@ -0,0 +1,48 @@
import React from 'react';
import PropTypes from 'prop-types';
import {
Container,
Row,
Col
} from './../../../components';
import { HeaderMain } from "../../components/HeaderMain";
import UsersList from './UsersList';
import UsersGrid from './UsersGrid';
import { UsersLeftNav } from "../../components/Users/UsersLeftNav";
import { ProjectsSmHeader } from "../../components/Projects/ProjectsSmHeader";
const Users = (props) => (
<React.Fragment>
<Container>
<HeaderMain
title="Users"
className="mb-5 mt-4"
/>
<Row>
<Col lg={ 3 }>
<UsersLeftNav />
</Col>
<Col lg={ 9 }>
<ProjectsSmHeader
subTitle={props.match.params.type === "list"?"Users List":"Users Grid"}
linkList="/apps/users/list"
linkGrid="/apps/users/grid"
/>
{
props.match.params.type === "list" ?
<UsersList /> :
<UsersGrid />
}
</Col>
</Row>
</Container>
</React.Fragment>
);
Users.propTypes = {
match: PropTypes.object.isRequired
};
export default Users;