mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
use reflow to migrate from flow to typescript
This commit is contained in:
17
scm-ui/ui-components/src/MailLink.tsx
Normal file
17
scm-ui/ui-components/src/MailLink.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import React from 'react';
|
||||
|
||||
type Props = {
|
||||
address?: string;
|
||||
};
|
||||
|
||||
class MailLink extends React.Component<Props> {
|
||||
render() {
|
||||
const { address } = this.props;
|
||||
if (!address) {
|
||||
return null;
|
||||
}
|
||||
return <a href={'mailto:' + address}>{address}</a>;
|
||||
}
|
||||
}
|
||||
|
||||
export default MailLink;
|
||||
Reference in New Issue
Block a user