Skip to content

Commit

Permalink
add target blank to links
Browse files Browse the repository at this point in the history
relates #90
  • Loading branch information
rehabas committed Apr 10, 2020
1 parent 1674892 commit f889ccb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"prettier",
Expand Down Expand Up @@ -45,7 +46,8 @@
"trailingComma": "es5",
"singleQuote": true
}
]
],
"react/state-in-constructor": [0, "always"]
},
"plugins": [
"react",
Expand Down
4 changes: 1 addition & 3 deletions client/lessVariables.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
module.exports = {
'@primary-color': '#E8505B',
'@white': '#FFFFFF',
'@light-grey': '#F0F2F9',
'@grey': '#E3E1E2',
'@btn-font-weight': '400',
'@btn-primary-color': '@primary-color',
'@btn-danger-bg': '@primary-color',
'@btn-danger-border': '@primary-color',
'@btn-border-radius-base': '5px',
'@pagination-item-bg': '#E3E1E2',
'@pagination-item-bg-active': '@primary-color',
'@pagination-item-link-bg': '@light-grey',
'@pagination-item-link-bg': '#F0F2F9',
};
8 changes: 6 additions & 2 deletions client/src/components/AdminCard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ const AdminCard = ({
)}
<div>
<h3>Github link</h3>
<a href={githbUrl}>Click</a>
<a href={githbUrl} target="blank">
Click
</a>
</div>
{student && (
<div>
Expand All @@ -47,7 +49,9 @@ const AdminCard = ({
{websiteLink && (
<div>
<h3>Website</h3>
<a href={websiteLink}>View</a>
<a href={websiteLink} target="blank">
View
</a>
</div>
)}
{studentNames && (
Expand Down
8 changes: 3 additions & 5 deletions client/src/containers/AdminCohortPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ export default () => {
});

return (
<div className="App">
<AdminContainer buttonContent="Add Cohort">
<ul className="cohorts">{items}</ul>
</AdminContainer>
</div>
<AdminContainer buttonContent="Add Cohort">
<ul className="cohorts">{items}</ul>
</AdminContainer>
);
};

0 comments on commit f889ccb

Please sign in to comment.