Skip to content

Commit

Permalink
Merge branch 'main' into offline-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso authored Jul 25, 2024
2 parents 2e6a411 + fce5512 commit 5b1ee78
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions components/AddToSlack.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function AddToSlack() {
return (
<a className="link text-accent" href="https://slack.com/oauth/v2/authorize?client_id=10831824934.7404945710466&scope=chat:write,commands&user_scope=email,openid">
Add Gearbox to Slack
</a>
);
}
1 change: 0 additions & 1 deletion enviroment.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ declare global {
IMAGE_UPLOAD_DIR: string;
FILL_TEAMS: string;

SLACK_KEY: string;
SLACK_BOT_TOKEN: string;
SLACK_CLIENT_ID: string;
SLACK_CLIENT_SECRET: string;
Expand Down
4 changes: 3 additions & 1 deletion pages/[teamSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { validName } from "@/lib/client/InputVerification";
import { BsSlack } from "react-icons/bs";
import { games } from "@/lib/games";
import { defaultGameId } from "@/lib/client/GameId";
import AddToSlack from "@/components/AddToSlack";

const api = new ClientAPI("gearboxiscool");

Expand Down Expand Up @@ -448,7 +449,8 @@ export default function TeamIndex(props: TeamPageProps) {
Not linked to Slack.
{ team?.owners.includes(session?.user?._id ?? "") &&
<>
{" "}Run <span className="text-accent">/link-notifications {team.number}</span> followed by
{" "}<AddToSlack />
, then run <span className="text-accent">/link-notifications {team.number}</span> followed by
{" "}<span className="text-accent">/invite @Gearbox</span> in Slack to link notifications.
</>
}
Expand Down
1 change: 1 addition & 0 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default function Document() {
<Html lang="en" data-theme="dark">
<Head>
<PwaConfig />
<meta name="slack-app-id" content="A07BWTTLWDQ" />
</Head>
<body>
<Main />
Expand Down

0 comments on commit 5b1ee78

Please sign in to comment.