Skip to content

Commit

Permalink
Conflicts manually resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
tfolbrecht committed Mar 13, 2019
1 parent 4963f76 commit 99d5e8a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 60 deletions.
5 changes: 0 additions & 5 deletions src/components/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,7 @@ class PrimarySearchAppBar extends React.Component {
open={isMenuOpen}
onClose={this.handleMenuClose}>
<MenuItem onClick={this.handleMenuClose}>Profile</MenuItem>
<<<<<<< HEAD
<MenuItem onClick={this.handleMenuClose}>My account</MenuItem>
<MenuItem onClick={this.handleLogout}>Logout</MenuItem>
=======
<MenuItem onClick={this.handleMenuClose}>Logout</MenuItem>
>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a
</Menu>
);

Expand Down
30 changes: 2 additions & 28 deletions src/components/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import React, { Component } from 'react';
<<<<<<< HEAD
import { connect } from 'react-redux';
import Paper from '@material-ui/core/Paper';
import AppBar from './AppBar';
import TodoCard from './TodoCard';
import Grid from '@material-ui/core/Grid';
import Editor from './Editor';
import { fetchUsers, fetchPosts, fetchCategories } from '../actions';


class Dashboard extends Component {
componentDidMount() {
this.props.fetchUsers();
Expand All @@ -27,26 +23,4 @@ class Dashboard extends Component {
export default connect(
null,
{ fetchUsers, fetchPosts, fetchCategories }
)(Dashboard);
=======
// import { Provider } from 'react-redux';
// import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
// import { createGlobalStyle } from 'styled-components';
// import theme from '../theme';
import AppBar from './AppBar';
import PreviewCard from './PreviewCard';


class Dashboard extends Component {
render() {
return (
<div className="app">
<AppBar/>
<PreviewCard/>
</div>
)
}
}

export default Dashboard;
>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a
)(Dashboard);
9 changes: 0 additions & 9 deletions src/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,20 @@ import 'react-quill/dist/quill.snow.css';

class Editor extends React.Component {
constructor(props) {
<<<<<<< HEAD
super(props);
this.state = { text: '' }; // You can also pass a Quill Delta here
=======
super(props)
this.state = { text: '' }
this.handleChange = this.handleChange.bind(this)
>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a
}

handleChange = (value) => {
this.setState({ text: value });
}

render() {
<<<<<<< HEAD
return <ReactQuill value={this.state.text} onChange={this.handleChange} />;
=======
return (
<ReactQuill value={this.state.text}
onChange={this.handleChange} />
)
>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a
}
}

Expand Down
20 changes: 2 additions & 18 deletions src/components/Root.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@ import theme from '../theme';
import PrivateRoute from './PrivateRoute';
import { MuiThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';

import Dashboard from './Dashboard';
<<<<<<< HEAD
import Register from './Register';
=======
import NewPost from './NewPost';
import Login from './Login';
import Signup from './Signup';
import SearchContainer from './SearchContainer';
import ViewHowTo from './ViewHowTo';
import UserProfile from './UserProfile';


>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a

const Root = ({ store }) => (
<Provider store={store}>
<Router>
Expand All @@ -33,24 +26,15 @@ const Root = ({ store }) => (
return null;
}}
/>
<<<<<<< HEAD
<Route exact path="/(login|signup)" component={Register} />
<PrivateRoute path="/dashboard" component={Dashboard} />
{/* <PrivateRoute path="/dashboard/new" component={NewPost} /> */}
{/* <PrivateRoute path="/posts" component={Posts} />
=======
<Route path="/login" component={Login} />
<Route path="/signup" component={Signup} />
<Route path="/dashboard" component={Dashboard} />
<Route path="/post/new" component={NewPost} />
<Route path="/search" component={SearchContainer} />
<Route path="/post/sample" component={ViewHowTo} />
<Route path="/profile" component={UserProfile} />
{/* <PrivateRoute path="/onboard" component={Dashboard} />
<PrivateRoute path="/posts" component={Posts} />
>>>>>>> 10c4aac4ceef6ee7076e9f9d1daf97e64629717a
<Route component={NoMatch} /> */}
{/* <PrivateRoute path="/dashboard/new" component={NewPost} /> */}
{/* <PrivateRoute path="/posts" component={Posts} /> */}
</Switch>
</MuiThemeProvider>
</Router>
Expand Down

0 comments on commit 99d5e8a

Please sign in to comment.