Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"axios": "^0.21.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Support Hub</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
22 changes: 9 additions & 13 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { BrowserRouter } from "react-router-dom";
import "./App.css";
import SignUp from "../src/components/login/SignUp";
import SignIn from "../src/components/login/SignIn"
function App() {
return(
<Router>
<Switch>
<Route exact path='/register' component={SignUp}/>
<Route exact path='/login' component={SignIn} />
</Switch>
</Router>
);
import Layout from "../src/components/layout/Layout";

}
export const App = () => {
return (
<BrowserRouter>
<Layout />
</BrowserRouter>
);
};
export default App;
86 changes: 86 additions & 0 deletions src/components/layout/TableLayout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import React from "react";
import { withStyles, makeStyles } from "@material-ui/core/styles";
import Table from "@material-ui/core/Table";
import TableBody from "@material-ui/core/TableBody";
import TableCell from "@material-ui/core/TableCell";
import TableHead from "@material-ui/core/TableHead";
import TableRow from "@material-ui/core/TableRow";


const StyledTableCell = withStyles((theme) => ({
head: {
backgroundColor: theme.palette.primary.dark,
color: theme.palette.common.white,
},
body: {
fontSize: 14,
},
}))(TableCell);

const StyledTableRow = withStyles((theme) => ({
root: {
"&:nth-of-type(odd)": {
backgroundColor: theme.palette.action.hover,
},
},
}))(TableRow);

function createData(Number, Name, State,AssignedTo,ShortDescription, DateCreated) {
return { Number, Name, State,AssignedTo, ShortDescription, DateCreated };
}

const rows = [
createData("REQ0456", "JACK", "ACTIVE"," ", "TAP NOT WORKING", "6/5/2021"),
createData("REQ0678", "MICHEAL", "ACTIVE","Shane", "TAP NOT WORKING", "6/5/2021"),
createData("REQ0987", "DEPP", "COMPLETED","Richard", "FAN NOT WORKING", "6/5/2021"),
];

const useStyles = makeStyles({
table: {
width: "900px",
marginTop: "75px",
marginLeft: "270px",
},
});

export const TableLayout = () => {
const classes = useStyles();

return (
// <TableContainer component={Paper}>
<Table className={classes.table} aria-label="customized table">
<TableHead>
<TableRow align="center">
<StyledTableCell align="right">
<span className={classes.headings}>Number</span>
</StyledTableCell>
<StyledTableCell align="right">Name</StyledTableCell>
<StyledTableCell align="right">State</StyledTableCell>
<StyledTableCell align="right">Short Description</StyledTableCell>
<StyledTableCell align="right">Assigned to</StyledTableCell>
<StyledTableCell align="right">Date Created</StyledTableCell>
</TableRow>
</TableHead>
<TableBody>
{rows.map((row) => (
<StyledTableRow key={row.name}>
{/* <StyledTableCell component="th" scope="row">
{row.name}
</StyledTableCell> */}
{<StyledTableCell align="right">{row.Number}</StyledTableCell>}
<StyledTableCell align="right">{row.Name}</StyledTableCell>
<StyledTableCell align="right">{row.State}</StyledTableCell>
<StyledTableCell align="right">
{row.ShortDescription}
</StyledTableCell>
<StyledTableCell align="right">{row.AssignedTo}</StyledTableCell>
<StyledTableCell align="right">{row.DateCreated}</StyledTableCell>
</StyledTableRow>
))}
</TableBody>
</Table>
// </TableContainer>
);
};

export default TableLayout;
Loading