diff --git a/src/Components/Contacts/index.js b/src/Components/Contacts/index.js index 6e89af7..51bff32 100644 --- a/src/Components/Contacts/index.js +++ b/src/Components/Contacts/index.js @@ -1,6 +1,7 @@ // Dependencies import React from "react"; import PropTypes from "prop-types"; +import { Link } from 'react-router-dom'; // Styles import { withStyles } from "@material-ui/core/styles"; @@ -78,25 +79,27 @@ class Contacts extends React.Component { {this.state.contacts.map(contact => ( - - - - - - - - - + + + + + + + + + + + ))} - - - - - - + {this.state.userNotFound ? ( + + + + User {this.props.match.params.username} hasn't shared their records with you + + + + ) : ( + + + + Clinical Profile: + +
+ + First Name + + + + Last Name + + + + + Biological Sex + + + + + Date of Birth + + +
+
+ + + + + + + + + +
-
+ )} - ); + ) } } diff --git a/src/Components/Settings/index.js b/src/Components/Settings/index.js index ec32e06..590420f 100644 --- a/src/Components/Settings/index.js +++ b/src/Components/Settings/index.js @@ -1,6 +1,5 @@ import React from "react"; import PropTypes from "prop-types"; -import classNames from "classnames"; import { withStyles } from "@material-ui/core/styles"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; diff --git a/src/Components/Timeline/index.js b/src/Components/Timeline/index.js index 9a86251..03a9940 100644 --- a/src/Components/Timeline/index.js +++ b/src/Components/Timeline/index.js @@ -1,11 +1,10 @@ import React from "react"; import PropTypes from "prop-types"; -import { Link } from "react-router-dom"; import { withStyles } from "@material-ui/core/styles"; import classNames from 'classnames'; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; -import { Formik, Field, FieldArray, Form } from 'formik'; +import { Formik, Field, Form } from 'formik'; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; import InputAdornment from '@material-ui/core/InputAdornment'; diff --git a/src/private-routes.js b/src/private-routes.js index 6faf5dd..20825a5 100644 --- a/src/private-routes.js +++ b/src/private-routes.js @@ -13,9 +13,11 @@ const PrivateRoutes = () => - - - + + + + +