Linkify topics in channel joining modal
This commit is contained in:
parent
77543e3aed
commit
4010132884
File diff suppressed because one or more lines are too long
@ -5,6 +5,7 @@ import Button from 'components/ui/Button';
|
|||||||
import { join } from 'state/channels';
|
import { join } from 'state/channels';
|
||||||
import { select } from 'state/tab';
|
import { select } from 'state/tab';
|
||||||
import { searchChannels } from 'state/channelSearch';
|
import { searchChannels } from 'state/channelSearch';
|
||||||
|
import { linkify } from 'utils';
|
||||||
|
|
||||||
const Channel = memo(({ server, name, topic, userCount, joined, ...props }) => {
|
const Channel = memo(({ server, name, topic, userCount, joined, ...props }) => {
|
||||||
const handleJoinClick = useCallback(() => props.join([name], server), []);
|
const handleJoinClick = useCallback(() => props.join([name], server), []);
|
||||||
@ -31,7 +32,7 @@ const Channel = memo(({ server, name, topic, userCount, joined, ...props }) => {
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<p className="modal-channel-topic">{topic}</p>
|
<p className="modal-channel-topic">{linkify(topic)}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user