Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
add some padding to show the text
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyokim committed Jul 26, 2018
1 parent f3b9e7c commit 0ad33d2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/components/application/hacker/Hacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const HackerApplication = (props) => {
const { hackerApplication } = props;
if (!hackerApplication.isLoaded) return (<div />);
if (hackerApplication.data) return (<Redirect to="/dashboard" />);
return (<div>o hello there pls apply</div>);
return (<div className="below-nav">o hello there pls apply</div>);
};

const mapStateToProps = (state) => {
Expand Down
12 changes: 9 additions & 3 deletions web/components/dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ import PropTypes from 'prop-types';

const DashBoard = (props) => {
const { hackerApplication } = props;
if (!hackerApplication.isLoaded) return (<div />);
if (hackerApplication.data) return (<div>you have one hacker application</div>);
return (<div>you didn&#39;t apply as hacker</div>);
let content;

if (hackerApplication.data) {
content = 'you have one hacker application';
} else {
content = 'you didn\'t apply as hacker';
}

return (<div className="below-nav">{content}</div>);
};

const mapStateToProps = (state) => {
Expand Down
3 changes: 3 additions & 0 deletions web/components/navbar/Navbar.sass
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ nav
color: #00D5D5
img
width: 32px

.below-nav
padding-top: 64px

0 comments on commit 0ad33d2

Please sign in to comment.