Add shift+click to link to a channel in the textarea

This commit is contained in:
brecert
2021-09-07 08:34:40 -04:00
parent e3067837ad
commit bc2fef4596
2 changed files with 13 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ export default function ConditionalLink(props: Props) {
const { active, ...linkProps } = props;
if (active) {
return <a>{props.children}</a>;
return <a onClick={linkProps.onClick}>{props.children}</a>;
}
return <Link {...linkProps} />;
}