Mention: allow it to link to the profile. disabled for MentionNode
This commit is contained in:
@ -52,7 +52,6 @@ interface IComposeEditor {
|
||||
const theme: InitialConfigType['theme'] = {
|
||||
emoji: 'select-none',
|
||||
hashtag: 'hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue',
|
||||
mention: 'hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue select-none',
|
||||
link: 'hover:underline text-primary-600 dark:text-accent-blue hover:text-primary-800 dark:hover:text-accent-blue',
|
||||
text: {
|
||||
bold: 'font-bold',
|
||||
|
||||
@ -78,7 +78,7 @@ class MentionNode extends DecoratorNode<JSX.Element> {
|
||||
const username = acct.split('@')[0];
|
||||
|
||||
return (
|
||||
<Mention mention={{ acct, username }} />
|
||||
<Mention mention={{ acct, username }} disabled />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user