mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Restore Twitter links for individual maintainers while keeping FilterLists account removal
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
parent
7ed49e20ab
commit
4975487f4a
1 changed files with 13 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import "./maintainers.css";
|
||||
import { HomeOutlined, MailOutlined } from "@ant-design/icons";
|
||||
import { HomeOutlined, MailOutlined, TwitterOutlined } from "@ant-design/icons";
|
||||
import { Card } from "antd";
|
||||
import { Maintainer } from "../../interfaces/Maintainer";
|
||||
|
||||
|
|
@ -47,5 +47,17 @@ const MaintainerComponent = (props: MaintainerComponentProps) => {
|
|||
</a>,
|
||||
);
|
||||
}
|
||||
if (props.maintainer.twitterHandle) {
|
||||
actions.push(
|
||||
<a
|
||||
href={`https://twitter.com/${props.maintainer.twitterHandle}`}
|
||||
title={`${props.maintainer.twitterHandle} on Twitter`}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<TwitterOutlined key="twitter" />
|
||||
</a>,
|
||||
);
|
||||
}
|
||||
return <Card title={props.maintainer.name} actions={actions} />;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue