Skip to content

Commit

Permalink
fixed link in header
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy-Jefferson committed Dec 4, 2023
1 parent 968488c commit 49acd24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
12 changes: 4 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react";
import ReactGA from "react-ga";
import $ from "jquery";
import Header from "./Components/Header";
import Footer from "./Components/Footer";
Expand All @@ -13,25 +12,22 @@ class App extends Component {
super(props);
this.state = {
foo: "bar",
resumeData: {}
resumeData: {},
};

ReactGA.initialize("UA-110570651-1");
ReactGA.pageview(window.location.pathname);
}

getResumeData() {
$.ajax({
url: "./resumeData.json",
dataType: "json",
cache: false,
success: function(data) {
success: function (data) {
this.setState({ resumeData: data });
}.bind(this),
error: function(xhr, status, err) {
error: function (xhr, status, err) {
console.log(err);
alert(err);
}
},
});
}

Expand Down
3 changes: 2 additions & 1 deletion src/Components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Header extends Component {
if (!this.props.data) return null;

// Extracting necessary data for header
const project = this.props.data.project; // Link to the project
const project = this.props.data.PROJECT; // Link to the project
const name = this.props.data.name; // User's name
const description = this.props.data.description; // Description about the user

Expand Down Expand Up @@ -80,6 +80,7 @@ class Header extends Component {
{/* Displaying a project link with an icon */}
<Fade bottom duration={2000}>
<span className="social">
{/* Updated link to use project variable */}
<a href={project} className="button btn project-btn">
<i className="fa fa-code" /> PROJECT
</a>
Expand Down
17 changes: 4 additions & 13 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";

ReactDOM.render(
<App />,
document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
ReactDOM.render(<App />, document.getElementById("root"));

0 comments on commit 49acd24

Please sign in to comment.