mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Add shift+click to link to a channel in the textarea
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user