Moved subcomponents to a new subcomponent folder
This commit is contained in:
parent
c2fabeaf2c
commit
b62caf02d4
|
|
@ -1,8 +1,8 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import './css/About.css';
|
import './css/About.css';
|
||||||
import Theater from './Theater';
|
import Theater from './subcomponents/Theater';
|
||||||
import Card from './Card';
|
import Card from './subcomponents/Card';
|
||||||
|
|
||||||
|
|
||||||
class About extends React.Component {
|
class About extends React.Component {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import Navigation from './Navigation';
|
||||||
import Home from './Home';
|
import Home from './Home';
|
||||||
import Github from './Github';
|
import Github from './Github';
|
||||||
import About from './About';
|
import About from './About';
|
||||||
|
import Social from './Social';
|
||||||
|
|
||||||
const App = (props) => {
|
const App = (props) => {
|
||||||
return (
|
return (
|
||||||
|
|
@ -14,6 +15,7 @@ const App = (props) => {
|
||||||
<Route path="/" exact component={Home} />
|
<Route path="/" exact component={Home} />
|
||||||
<Route path="/github" component={Github} />
|
<Route path="/github" component={Github} />
|
||||||
<Route path="/about" component={About} />
|
<Route path="/about" component={About} />
|
||||||
|
<Route path="/social" component={Social} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import './css/Github.css';
|
import './css/Github.css';
|
||||||
import {getRepos, getRepoLanguages} from '../actions';
|
import {getRepos, getRepoLanguages} from '../actions';
|
||||||
import Theater from './Theater';
|
import Theater from './subcomponents/Theater';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
class Github extends React.Component {
|
class Github extends React.Component {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Theater from './Theater';
|
import Theater from './subcomponents/Theater';
|
||||||
import './css/Home.css';
|
import './css/Home.css';
|
||||||
|
|
||||||
const Home = (props) => {
|
const Home = (props) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { connect } from 'react-redux';
|
||||||
import {toggleContactModal} from '../actions'
|
import {toggleContactModal} from '../actions'
|
||||||
import './css/Navigation.css';
|
import './css/Navigation.css';
|
||||||
import { HouseDoor, FileEarmarkPerson, Github, Envelope, Share } from 'react-bootstrap-icons';
|
import { HouseDoor, FileEarmarkPerson, Github, Envelope, Share } from 'react-bootstrap-icons';
|
||||||
import ContactModal from './ContactModal';
|
import ContactModal from './subcomponents/ContactModal';
|
||||||
|
|
||||||
const Navigation = (props) => {
|
const Navigation = (props) => {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './css/Card.css';
|
import '../css/Card.css';
|
||||||
|
|
||||||
const Card = (props) => {
|
const Card = (props) => {
|
||||||
return (
|
return (
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import Modal from './Modal';
|
import Modal from './Modal';
|
||||||
import {toggleContactModal, updateEmailBody} from '../actions'
|
import {toggleContactModal, updateEmailBody} from '../../actions'
|
||||||
|
|
||||||
const ContactModal = props => {
|
const ContactModal = props => {
|
||||||
const onSubmit = (e) => {
|
const onSubmit = (e) => {
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import './css/Modal.css';
|
import '../css/Modal.css';
|
||||||
|
|
||||||
const Modal = props => {
|
const Modal = props => {
|
||||||
return ReactDOM.createPortal(
|
return ReactDOM.createPortal(
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './css/Theater.css';
|
import '../css/Theater.css';
|
||||||
|
|
||||||
const Theater = (props) => {
|
const Theater = (props) => {
|
||||||
|
|
||||||
Loading…
Reference in New Issue