[CORl-278] Perspective Model (#2337)

* feat: support switching the perspective model

* feat: support changing the model on admin

* fix: linting

* fix: removed defaulted value
This commit is contained in:
Wyatt Johnson
2019-06-28 22:10:32 +00:00
committed by GitHub
parent e72b15c505
commit 76033118e5
12 changed files with 154 additions and 19 deletions
@@ -6,7 +6,17 @@ const ExternalLink: FunctionComponent<{
href?: string;
children?: string;
}> = ({ href, children }) => (
<a href={href || children} target="_blank" className={styles.root}>
<a
href={href || children}
target="_blank"
/**
* Added as a security workaround as per:
*
* https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/
*/
rel="noopener noreferrer"
className={styles.root}
>
{children}
</a>
);
@@ -4,6 +4,7 @@ exports[`renders correctly 1`] = `
<a
className="ExternalLink-root"
href="http://test.com"
rel="noopener noreferrer"
target="_blank"
>
http://test.com