format code and fix i18n prop passing in oauth guide step 3

This commit is contained in:
myl7 2022-02-08 17:53:15 +08:00
parent 207a90e6e2
commit 09c67f4870
No known key found for this signature in database
GPG key ID: 04F1013B67177C88
3 changed files with 7 additions and 5 deletions

View file

@ -150,7 +150,7 @@ export default function OAuthStep1() {
export async function getServerSideProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ['common']))
}
...(await serverSideTranslations(locale, ['common'])),
},
}
}

View file

@ -143,7 +143,7 @@ export default function OAuthStep2() {
export async function getServerSideProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ['common']))
}
...(await serverSideTranslations(locale, ['common'])),
},
}
}

View file

@ -231,6 +231,7 @@ export async function getServerSideProps({ query, locale }) {
props: {
error: 'No auth code present',
description: 'Where is the auth code? Did you follow step 2 you silly donut?',
...(await serverSideTranslations(locale, ['common'])),
},
}
}
@ -244,6 +245,7 @@ export async function getServerSideProps({ query, locale }) {
error: response.error,
description: response.errorDescription,
errorUri: response.errorUri,
...(await serverSideTranslations(locale, ['common'])),
},
}
}
@ -256,7 +258,7 @@ export async function getServerSideProps({ query, locale }) {
expiryTime,
accessToken,
refreshToken,
...(await serverSideTranslations(locale, ['common']))
...(await serverSideTranslations(locale, ['common'])),
},
}
}