chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
import type { NextPage } from 'next'
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
import type { NextPage } from "next"
|
||||
import useTranslation from "next-translate/useTranslation"
|
||||
|
||||
import { Head } from '../../../components/Head'
|
||||
import { Application } from '../../../components/Application'
|
||||
import type { PagePropsWithAuthentication } from '../../../tools/authentication'
|
||||
import { Head } from "../../../components/Head"
|
||||
import { Application } from "../../../components/Application"
|
||||
import type { PagePropsWithAuthentication } from "../../../tools/authentication"
|
||||
import {
|
||||
authenticationFromServerSide,
|
||||
AuthenticationProvider
|
||||
} from '../../../tools/authentication'
|
||||
import { CreateGuild } from '../../../components/Application/CreateGuild'
|
||||
import { GuildsProvider } from '../../../contexts/Guilds'
|
||||
AuthenticationProvider,
|
||||
} from "../../../tools/authentication"
|
||||
import { CreateGuild } from "../../../components/Application/CreateGuild"
|
||||
import { GuildsProvider } from "../../../contexts/Guilds"
|
||||
|
||||
const CreateGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
const { t } = useTranslation()
|
||||
@ -18,12 +18,12 @@ const CreateGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
<AuthenticationProvider authentication={props.authentication}>
|
||||
<GuildsProvider>
|
||||
<Head
|
||||
title={`Thream | ${t('application:create-a-guild')}`}
|
||||
description={t('application:create-a-guild-description')}
|
||||
title={`Thream | ${t("application:create-a-guild")}`}
|
||||
description={t("application:create-a-guild-description")}
|
||||
/>
|
||||
<Application
|
||||
path='/application/guilds/create'
|
||||
title={t('application:create-a-guild')}
|
||||
path="/application/guilds/create"
|
||||
title={t("application:create-a-guild")}
|
||||
>
|
||||
<CreateGuild />
|
||||
</Application>
|
||||
@ -33,7 +33,7 @@ const CreateGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
}
|
||||
|
||||
export const getServerSideProps = authenticationFromServerSide({
|
||||
shouldBeAuthenticated: true
|
||||
shouldBeAuthenticated: true,
|
||||
})
|
||||
|
||||
export default CreateGuildPage
|
||||
|
@ -1,15 +1,15 @@
|
||||
import type { NextPage } from 'next'
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
import type { NextPage } from "next"
|
||||
import useTranslation from "next-translate/useTranslation"
|
||||
|
||||
import { Head } from '../../../components/Head'
|
||||
import { Application } from '../../../components/Application'
|
||||
import type { PagePropsWithAuthentication } from '../../../tools/authentication'
|
||||
import { Head } from "../../../components/Head"
|
||||
import { Application } from "../../../components/Application"
|
||||
import type { PagePropsWithAuthentication } from "../../../tools/authentication"
|
||||
import {
|
||||
authenticationFromServerSide,
|
||||
AuthenticationProvider
|
||||
} from '../../../tools/authentication'
|
||||
import { JoinGuildsPublic } from '../../../components/Application/JoinGuildsPublic'
|
||||
import { GuildsProvider } from '../../../contexts/Guilds'
|
||||
AuthenticationProvider,
|
||||
} from "../../../tools/authentication"
|
||||
import { JoinGuildsPublic } from "../../../components/Application/JoinGuildsPublic"
|
||||
import { GuildsProvider } from "../../../contexts/Guilds"
|
||||
|
||||
const JoinGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
const { t } = useTranslation()
|
||||
@ -18,12 +18,12 @@ const JoinGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
<AuthenticationProvider authentication={props.authentication}>
|
||||
<GuildsProvider>
|
||||
<Head
|
||||
title={`Thream | ${t('application:join-a-guild')}`}
|
||||
description={t('application:join-a-guild-description')}
|
||||
title={`Thream | ${t("application:join-a-guild")}`}
|
||||
description={t("application:join-a-guild-description")}
|
||||
/>
|
||||
<Application
|
||||
path='/application/guilds/join'
|
||||
title={t('application:join-a-guild')}
|
||||
path="/application/guilds/join"
|
||||
title={t("application:join-a-guild")}
|
||||
>
|
||||
<JoinGuildsPublic />
|
||||
</Application>
|
||||
@ -33,7 +33,7 @@ const JoinGuildPage: NextPage<PagePropsWithAuthentication> = (props) => {
|
||||
}
|
||||
|
||||
export const getServerSideProps = authenticationFromServerSide({
|
||||
shouldBeAuthenticated: true
|
||||
shouldBeAuthenticated: true,
|
||||
})
|
||||
|
||||
export default JoinGuildPage
|
||||
|
Reference in New Issue
Block a user