Skip to content

Commit

Permalink
Merge pull request #1001 from hackclub/malted/more-chat-buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
malted authored Dec 20, 2024
2 parents f9319dc + 40e3295 commit 0c3605c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/app/harbor/signpost/best-ships.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ export default function BestShips() {
/>
</a>
</div>
{partialShip.entrantSlackId ? (
<a
target="_blank"
href={`https://slack.com/app_redirect?channel=${partialShip.entrantSlackId}`}
>
<Pill
glyph="slack"
classes="bg-white/15 text-white"
color="purple"
msg="Chat on Slack"
/>
</a>
) : null}
<div className="h-40 mx-auto rounded">
<a href={partialShip.screenshotUrl}>
<img
Expand Down
1 change: 1 addition & 0 deletions src/app/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export async function getBestShips(): Promise<BestShip[]> {
deployUrl: fields.deploy_url,
screenshotUrl: fields.screenshot_url,
payout: fields.doubloon_payout,
entrantSlackId: fields.entrant__slack_id[0],
}),
)

Expand Down

0 comments on commit 0c3605c

Please sign in to comment.