diff --git a/twistter-frontend/src/App.js b/twistter-frontend/src/App.js
index bba7873..c518ebb 100644
--- a/twistter-frontend/src/App.js
+++ b/twistter-frontend/src/App.js
@@ -1,11 +1,14 @@
+/* eslint-disable */
import React, { Component } from 'react';
import logo from './images/twistter-logo.png';
-import { BrowserRouter as Router } from 'react-router-dom';
-import Route from 'react-router-dom/Route';
+import { BrowserRouter as Router, Route, Switch} from 'react-router-dom';
import './App.css';
//TODO: reorganize imports
+//components
+import Navbar from './components/layout/NavBar';
+
// pages
import user from './pages/user';
@@ -95,12 +98,11 @@ class App extends Component {
render() {
return (
-
+
+
+
-
-
-
{
return (
@@ -167,13 +169,13 @@ class App extends Component {
}
}/>
-
+
+
-
-
+
);
}
diff --git a/twistter-frontend/src/components/ChipsArray.js b/twistter-frontend/src/components/ChipsArray.js
deleted file mode 100644
index a99afd1..0000000
--- a/twistter-frontend/src/components/ChipsArray.js
+++ /dev/null
@@ -1,52 +0,0 @@
-import React from 'react';
-import { makeStyles } from '@material-ui/core/styles';
-import Chip from '@material-ui/core/Chip';
-import Paper from '@material-ui/core/Paper';
-
-const useStyles = makeStyles(theme => ({
- root: {
- display: 'flex',
- justifyContent: 'center',
- flexWrap: 'wrap',
- padding: theme.spacing(0.5),
- },
- chip: {
- margin: theme.spacing(0.5),
- },
-}));
-
-export default function ChipsArray() {
- const classes = useStyles();
- const [chipData, setChipData] = React.useState([
- { key: 0, label: 'Angular' },
- { key: 1, label: 'jQuery' },
- { key: 2, label: 'Polymer' },
- { key: 3, label: 'React' },
- { key: 4, label: 'Vue.js' },
- ]);
-
- const handleDelete = chipToDelete => () => {
- if (chipToDelete.label === 'React') {
- alert('Why would you want to delete React?! :)');
- return;
- }
-
- setChipData(chips => chips.filter(chip => chip.key !== chipToDelete.key));
- };
-
- return (
-
- {chipData.map(data => {
-
- return (
-
- );
- })}
-
- );
-}
\ No newline at end of file
diff --git a/twistter-frontend/src/components/NavBar.js b/twistter-frontend/src/components/NavBar.js
deleted file mode 100644
index 9e9fcee..0000000
--- a/twistter-frontend/src/components/NavBar.js
+++ /dev/null
@@ -1,19 +0,0 @@
-import React, { Component } from 'react';
-
-import AppBar from '@material-ui/core/AppBar';
-import ToolBar from '@material-ui/core/Toolbar';
-import Button from '@material-ui/core/Button';
-
-export class Navbar extends Component {
- render() {
- return (
-
-
-
-
-
- )
- }
-}
-
-export default Navbar;
diff --git a/twistter-frontend/src/pages/user.js b/twistter-frontend/src/pages/user.js
index 1567e85..142f9b7 100644
--- a/twistter-frontend/src/pages/user.js
+++ b/twistter-frontend/src/pages/user.js
@@ -1,21 +1,40 @@
+/* eslint-disable */
import React, { Component } from 'react';
-import ReactDOM from 'react-dom';
-import NavBar from '../components/NavBar';
-import ChipsArray from '../components/ChipsArray';
+import PropTypes from 'prop-types';
+import StaticProfile from '../components/profile/StaticProfile';
+import Grid from '@material-ui/core/Grid';
+
+import PostSkeleton from '../util/PostSkeleton';
+
+import { connect } from 'react-redux';
+
class user extends Component {
render() {
+ const postMarkup = PostSkeleton;
+
return (
-
-
-
-
-
+ User page
+ //
+ //
+ // postMarkup
+ // {postMarkup}
+ //
+ // {/*
+ //
+ // */}
+ //
)
}
}
-//ReactDOM.render(, node);
-ReactDOM.render(, document.querySelector('#root'));
+user.propTypes = {
+ // getUserData: PropTypes.func.isRequired,
+ //data: PropTypes.object.isRequired
+};
-export default user
+const mapStateToProps = (state) => ({
+ data: state.data
+});
+
+export default connect(user);
diff --git a/twistter-frontend/src/util/PostSkeleton.js b/twistter-frontend/src/util/PostSkeleton.js
index 5cc82c0..ff14e16 100644
--- a/twistter-frontend/src/util/PostSkeleton.js
+++ b/twistter-frontend/src/util/PostSkeleton.js
@@ -1,3 +1,4 @@
+/* eslint-disable */
import React, { Fragment } from 'react';
import NoImg from '../images/no-img.png';
import PropTypes from 'prop-types';
@@ -71,3 +72,6 @@ const PostSkeleton = (props) => {
PostSkeleton.propTypes = {
classes: PropTypes.object.isRequired
};
+
+export default withStyles(styles)(PostSkeleton);
+