Skip to content

Commit

Permalink
refactor(data): move location of data file(s)
Browse files Browse the repository at this point in the history
Moved page source files (JSON-files) from data/ to src/ to adhere to guidelines.
  • Loading branch information
alexvnilsson committed May 11, 2020
1 parent f02e321 commit 8ee180a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from "react-router-dom";

import { store, actions } from "Core/UI/Store";

import Resume from "../../data/resume.json";
import PageData from "./Home.json";

import {
Timeline,
Expand Down Expand Up @@ -96,7 +96,7 @@ export default class Home extends Component {
<h2 className="timeline-group-title">Arbetslivserfarenhet</h2>

<Timeline>
{Resume.work.map((item, index) => (
{PageData.work.map((item, index) => (
<TimelineItem
heading={item.title || "Title"}
subheading={item.subtitle || "Subtitle"}
Expand All @@ -113,7 +113,7 @@ export default class Home extends Component {
<h2 className="timeline-group-title">Utbildning</h2>

<Timeline>
{Resume.education.map((item, index) => (
{PageData.education.map((item, index) => (
<TimelineItem
heading={item.title || "Title"}
subheading={item.subtitle || "Subtitle"}
Expand Down
2 changes: 1 addition & 1 deletion data/resume.json → src/Pages/Home.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"education": [
{
"title": "IT-gymnasiet Skövde",
Expand Down

0 comments on commit 8ee180a

Please sign in to comment.