From b905eab9477d46972c3fb09d25ae3bee5480c6d4 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 12 May 2022 12:30:45 +0200 Subject: [PATCH] update front page title on navigate --- resources/js/components/pages/AosFront.js | 140 ++++++++++++---------- 1 file changed, 75 insertions(+), 65 deletions(-) diff --git a/resources/js/components/pages/AosFront.js b/resources/js/components/pages/AosFront.js index 8ae6d8b..d308f7d 100644 --- a/resources/js/components/pages/AosFront.js +++ b/resources/js/components/pages/AosFront.js @@ -5,70 +5,80 @@ import { withTranslation } from 'react-i18next'; import Icon from '../common/Icon'; import i18n from '../../i18n'; -const AosFront = () => -
-

Castlevania: Aria of Sorrow

-
- - - - - - - - - - - - - - - - - -
; +const authEndpoint = 'https://discord.com/oauth2/authorize'; +const clientId = '951113702839549982'; +const botUrl = `${authEndpoint}?client_id=${clientId}&scope=bot%20applications.commands`; +const commandUrl = `${authEndpoint}?client_id=${clientId}&scope=applications.commands`; + +const AosFront = () => { + React.useEffect(() => { + window.document.title = 'Aos'; + }, []); + return +
+

Castlevania: Aria of Sorrow

+
+ + + + + + + + + + + + + + + + + +
; +}; export default withTranslation()(AosFront); -- 2.39.2