mirror of
https://github.com/wassname/talk.git
synced 2026-07-28 11:27:05 +08:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user