mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
format code and fix i18n prop passing in oauth guide step 3
This commit is contained in:
@@ -150,7 +150,7 @@ export default function OAuthStep1() {
|
|||||||
export async function getServerSideProps({ locale }) {
|
export async function getServerSideProps({ locale }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale, ['common']))
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default function OAuthStep2() {
|
|||||||
export async function getServerSideProps({ locale }) {
|
export async function getServerSideProps({ locale }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale, ['common']))
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ export async function getServerSideProps({ query, locale }) {
|
|||||||
props: {
|
props: {
|
||||||
error: 'No auth code present',
|
error: 'No auth code present',
|
||||||
description: 'Where is the auth code? Did you follow step 2 you silly donut?',
|
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,
|
error: response.error,
|
||||||
description: response.errorDescription,
|
description: response.errorDescription,
|
||||||
errorUri: response.errorUri,
|
errorUri: response.errorUri,
|
||||||
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -256,7 +258,7 @@ export async function getServerSideProps({ query, locale }) {
|
|||||||
expiryTime,
|
expiryTime,
|
||||||
accessToken,
|
accessToken,
|
||||||
refreshToken,
|
refreshToken,
|
||||||
...(await serverSideTranslations(locale, ['common']))
|
...(await serverSideTranslations(locale, ['common'])),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user