From 7dcb031d4aa0462f316efdc3d22eb3aa97856237 Mon Sep 17 00:00:00 2001 From: Arham Ansari <73043239+ArmyyA@users.noreply.github.com> Date: Tue, 21 Dec 2021 22:22:47 -0500 Subject: [PATCH 1/2] Create PortfolioSection Folder --- src/components/PortfolioSection/index.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/components/PortfolioSection/index.js diff --git a/src/components/PortfolioSection/index.js b/src/components/PortfolioSection/index.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/src/components/PortfolioSection/index.js @@ -0,0 +1 @@ + From 2fca54d264f8a458c1fa63de3cbf31abdcf05474 Mon Sep 17 00:00:00 2001 From: Arham Ansari <73043239+ArmyyA@users.noreply.github.com> Date: Sat, 25 Dec 2021 18:58:08 -0500 Subject: [PATCH 2/2] Refactor File-Structure Refactored directories for ProfilePic, PortfolioSection and Modal. --- src/components/{ => Modal}/Modal.js | 2 +- .../{ => PortfolioSection/components}/PortfolioSection.js | 4 ++-- src/components/PortfolioSection/components/index.js | 1 + src/components/PortfolioSection/index.js | 1 - src/components/{ => ProfilePic}/ProfilePic.js | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/components/{ => Modal}/Modal.js (99%) rename src/components/{ => PortfolioSection/components}/PortfolioSection.js (92%) create mode 100644 src/components/PortfolioSection/components/index.js delete mode 100644 src/components/PortfolioSection/index.js rename src/components/{ => ProfilePic}/ProfilePic.js (100%) diff --git a/src/components/Modal.js b/src/components/Modal/Modal.js similarity index 99% rename from src/components/Modal.js rename to src/components/Modal/Modal.js index c4fe33d..13574f0 100644 --- a/src/components/Modal.js +++ b/src/components/Modal/Modal.js @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' import HamburgerMenu from 'react-hamburger-menu' -import Profile from './ProfilePic' +import Profile from '../ProfilePic/ProfilePic' import Img from 'gatsby-image' import gsap from 'gsap' diff --git a/src/components/PortfolioSection.js b/src/components/PortfolioSection/components/PortfolioSection.js similarity index 92% rename from src/components/PortfolioSection.js rename to src/components/PortfolioSection/components/PortfolioSection.js index 57a51ee..c87c7a8 100644 --- a/src/components/PortfolioSection.js +++ b/src/components/PortfolioSection/components/PortfolioSection.js @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' -import Profile from './ProfilePic' -import Modal from './Modal' +import Profile from '../../ProfilePic/ProfilePic' +import Modal from '../../Modal' class Portfolio extends React.Component { constructor(props) { diff --git a/src/components/PortfolioSection/components/index.js b/src/components/PortfolioSection/components/index.js new file mode 100644 index 0000000..b75f75a --- /dev/null +++ b/src/components/PortfolioSection/components/index.js @@ -0,0 +1 @@ +export * from './PortfolioSection' diff --git a/src/components/PortfolioSection/index.js b/src/components/PortfolioSection/index.js deleted file mode 100644 index 8b13789..0000000 --- a/src/components/PortfolioSection/index.js +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/components/ProfilePic.js b/src/components/ProfilePic/ProfilePic.js similarity index 100% rename from src/components/ProfilePic.js rename to src/components/ProfilePic/ProfilePic.js