Skip to content

Commit 7fce0aa

Browse files
authored
Merge pull request #547 from systemli/Add-Property-for-Bluesky-Profile-URL
✨ Add Property for Bluesky Profile URL
2 parents 3090ccd + 20848d4 commit 7fce0aa

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

src/components/About.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const About: FC<Props> = ({ isModal }) => {
2727
{ticker.information.facebook && <DescriptionItem info={ticker.information.facebook} type={DescriptionTypes.Facebook} />}
2828
{ticker.information.telegram && <DescriptionItem info={ticker.information.telegram} type={DescriptionTypes.Telegram} />}
2929
{ticker.information.mastodon && <DescriptionItem info={ticker.information.mastodon} type={DescriptionTypes.Mastodon} />}
30+
{ticker.information.bluesky && <DescriptionItem info={ticker.information.bluesky} type={DescriptionTypes.Bluesky} />}
3031
<List.Item>
3132
<List.Icon name="feed" />
3233
<List.Content>

src/components/DescriptionItem.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ const DescriptionItem: FC<Props> = props => {
8080
</List.Content>
8181
</List.Item>
8282
)
83+
case DescriptionTypes.Bluesky:
84+
return (
85+
<List.Item>
86+
<List.Icon name="linkify" />
87+
<List.Content>
88+
<a href={`${props.info}`} rel="noopener noreferrer" target="_blank">
89+
{props.info.replace('https://', '')}
90+
</a>
91+
</List.Content>
92+
</List.Item>
93+
)
8394
default:
8495
return null
8596
}

src/lib/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type TickerInformation = {
1515
twitter: string
1616
url: string
1717
mastodon: string
18+
bluesky: string
1819
}
1920

2021
export type Settings = {
@@ -40,6 +41,7 @@ export enum DescriptionTypes {
4041
Twitter = 'TWITTER',
4142
Telegram = 'TELEGRAM',
4243
Mastodon = 'MASTODON',
44+
Bluesky = 'BLUESKY',
4345
}
4446

4547
export type Message = {

0 commit comments

Comments
 (0)