diff --git a/components/AddToSlack.tsx b/components/AddToSlack.tsx new file mode 100644 index 00000000..3260bb2a --- /dev/null +++ b/components/AddToSlack.tsx @@ -0,0 +1,7 @@ +export default function AddToSlack() { + return ( + + Add Gearbox to Slack + + ); +} \ No newline at end of file diff --git a/enviroment.d.ts b/enviroment.d.ts index dd3e1355..7bc08267 100644 --- a/enviroment.d.ts +++ b/enviroment.d.ts @@ -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; diff --git a/pages/[teamSlug]/index.tsx b/pages/[teamSlug]/index.tsx index 7d8c5217..b618ce82 100644 --- a/pages/[teamSlug]/index.tsx +++ b/pages/[teamSlug]/index.tsx @@ -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"); @@ -448,7 +449,8 @@ export default function TeamIndex(props: TeamPageProps) { Not linked to Slack. { team?.owners.includes(session?.user?._id ?? "") && <> - {" "}Run /link-notifications {team.number} followed by + {" "} + , then run /link-notifications {team.number} followed by {" "}/invite @Gearbox in Slack to link notifications. } diff --git a/pages/_document.tsx b/pages/_document.tsx index d6d0f6d9..d1319a61 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -6,6 +6,7 @@ export default function Document() { +