This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AravindM
committed
May 18, 2018
1 parent
ea369aa
commit a3a8c46
Showing
4 changed files
with
88 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,27 @@ | ||
import React, { Component } from 'react'; | ||
import logo from './logo.svg'; | ||
import React, {Component} from 'react'; | ||
import './App.css'; | ||
import Me from "./Me"; | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={logo} className="App-logo" alt="logo" /> | ||
<h1 className="App-title">Welcome to React</h1> | ||
</header> | ||
<p className="App-intro"> | ||
Journey of React begins.... | ||
</p> | ||
</div> | ||
); | ||
} | ||
|
||
toggle = false; | ||
|
||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="App"> | ||
<header className="App-header"> | ||
<img src={this.props.data.image} className="App-logo" alt="logo"/> | ||
<h1 className="App-title">Welcome {this.props.data.firstName} | ||
{this.props.data.lastName}</h1> | ||
</header> | ||
<Me userDetails={this.props.data.details}/> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default App; | ||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
|
||
function SocialDetails({socialDetails}) { | ||
return ( | ||
<div> | ||
<p><strong>{socialDetails.provider}</strong> | ||
{socialDetails.username !== undefined && " - " + socialDetails.username} | ||
{socialDetails.channel !== undefined && " - " + socialDetails.channel} | ||
{socialDetails.link !== undefined && " - " + socialDetails.link} | ||
{socialDetails.url !== undefined && " - " + socialDetails.url} | ||
{socialDetails.type !== undefined && " - " + socialDetails.type} | ||
{" - " + socialDetails.engagement.join(", ")} | ||
</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default SocialDetails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters