mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Show about info from contact profiles
This commit is contained in:
committed by
Scott Nonnenberg
parent
c8b551edab
commit
258bd55dd2
@@ -0,0 +1,22 @@
|
||||
// Copyright 2018-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Emojify } from './Emojify';
|
||||
|
||||
export type PropsType = {
|
||||
text?: string;
|
||||
};
|
||||
|
||||
export const About = ({ text }: PropsType): JSX.Element | null => {
|
||||
if (!text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<span className="module-about__text" dir="auto">
|
||||
<Emojify text={text || ''} />
|
||||
</span>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user