enhance(frontend): use config value instead of hard code
style(frontend): change some messages
This commit is contained in:
parent
e902bc2bdb
commit
c788e74d5b
7 changed files with 16 additions and 12 deletions
|
@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next';
|
|||
import { useGetScoreQuery, useGetSessionQuery } from '../services/session';
|
||||
import { useAnnouncements } from '../hooks/useAnnouncements';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { config } from '../../config.js';
|
||||
|
||||
export const IndexSessionPage: React.VFC = () => {
|
||||
const {t} = useTranslation();
|
||||
|
@ -62,9 +63,9 @@ export const IndexSessionPage: React.VFC = () => {
|
|||
<h2><i className="fas fa-circle-question"></i> {t('_developerInfo.title')}</h2>
|
||||
<p>{t('_developerInfo.description')}</p>
|
||||
<div className="menu large">
|
||||
<a className="item" href="https://psec.dev/@PSEC" target="_blank" rel="noopener noreferrer">
|
||||
<a className="item" href={`https://${config.admin.host}/@${config.admin.username}`} target="_blank" rel="noopener noreferrer">
|
||||
<i className="icon fas fa-at"></i>
|
||||
@PSEC@psec.dev
|
||||
@{config.admin.username}@{config.admin.host}
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue