From e3e7d500dc3fa32df2bcd117f7ffe5bf799da33e Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Fri, 7 Apr 2023 12:12:48 +0100 Subject: [PATCH] refactor: Use description constant in landing page (#9334) --- apps/website/src/app/page.tsx | 8 ++------ apps/website/src/util/constants.ts | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/website/src/app/page.tsx b/apps/website/src/app/page.tsx index 2f34c406e..3924b226a 100644 --- a/apps/website/src/app/page.tsx +++ b/apps/website/src/app/page.tsx @@ -3,7 +3,7 @@ import Image from 'next/image'; import Link from 'next/link'; import vercelLogo from '~/assets/powered-by-vercel.svg'; import { SyntaxHighlighter } from '~/components/SyntaxHighlighter'; -import { CODE_EXAMPLE } from '~/util/constants'; +import { DESCRIPTION, CODE_EXAMPLE } from '~/util/constants'; export default function Page() { return ( @@ -14,11 +14,7 @@ export default function Page() { The most popular way to build Discord
bots. -

- discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It - takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code - significantly tidier and easier to comprehend. -

+

{DESCRIPTION}