mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Add jsx-indent rule
This commit is contained in:
parent
d6193fd565
commit
aa41bfc637
@ -126,7 +126,7 @@ export function GlobeSection({ countryData, totalUsers, children }: {countryData
|
||||
setErrorRefreshCount(e => e + 1);
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
setTimeout(() => {
|
||||
alert("Globe rendering error — it has now been refreshed. TODO let's fix this")
|
||||
alert("Globe rendering error — it has now been refreshed. TODO let's fix this");
|
||||
}, 1000);
|
||||
}
|
||||
}
|
||||
@ -303,7 +303,7 @@ export function GlobeSection({ countryData, totalUsers, children }: {countryData
|
||||
100% {box-shadow: 0 0 0 8px #0000}
|
||||
}
|
||||
`}</style>
|
||||
LIVE
|
||||
LIVE
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -220,7 +220,7 @@ function MetadataEditor({ title, initialValue, onUpdate, hint }: MetadataEditorP
|
||||
setValue(formatJson(initialValue));
|
||||
setHasChanged(false);
|
||||
}}>
|
||||
Revert
|
||||
Revert
|
||||
</Button>
|
||||
<Button
|
||||
variant={isJson ? "default" : "secondary"}
|
||||
|
||||
@ -89,21 +89,21 @@ export default function NeonIntegrationProjectTransferConfirmPageClient() {
|
||||
</h1>
|
||||
{state === 'success' && <>
|
||||
<Typography className="text-sm">
|
||||
Neon would like to transfer a Stack Auth project and link it to your own account. This will let you access the project from Stack Auth's dashboard.
|
||||
Neon would like to transfer a Stack Auth project and link it to your own account. This will let you access the project from Stack Auth's dashboard.
|
||||
</Typography>
|
||||
{user ? (
|
||||
<>
|
||||
<Typography className="mb-3 text-sm">
|
||||
Which Stack Auth account would you like to transfer the project to? (You'll still be able to access your project from Neon's dashboard.)
|
||||
Which Stack Auth account would you like to transfer the project to? (You'll still be able to access your project from Neon's dashboard.)
|
||||
</Typography>
|
||||
<Input type="text" disabled prefixItem={<Logo noLink width={15} height={15} />} value={`Signed in as ${user.primaryEmail || user.displayName || "Unnamed user"}`} />
|
||||
<Button variant="secondary" onClick={async () => await user.signOut({ redirectUrl: signUpUrl })}>
|
||||
Switch account
|
||||
Switch account
|
||||
</Button>
|
||||
</>
|
||||
) : (
|
||||
<Typography className="text-sm">
|
||||
To continue, please sign in or create a Stack Auth account.
|
||||
To continue, please sign in or create a Stack Auth account.
|
||||
</Typography>
|
||||
)}
|
||||
</>}
|
||||
|
||||
@ -8,10 +8,10 @@ export default function Actions() {
|
||||
return (
|
||||
<div className="flex gap-2 justify-center">
|
||||
<Button variant="secondary" onClick={() => { window.open("https://docs.stack-auth.com/"); }}>
|
||||
Visit docs
|
||||
Visit docs
|
||||
</Button>
|
||||
<Button onClick={() => { router.push("/projects"); }}>
|
||||
Continue
|
||||
Continue
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -28,7 +28,7 @@ export default function WizardCongratsPage() {
|
||||
<Card className="max-w-lg">
|
||||
<CardHeader>
|
||||
<Typography type='h1'>
|
||||
Congrats! 🎉
|
||||
Congrats! 🎉
|
||||
</Typography>
|
||||
</CardHeader>
|
||||
<CardContent className="flex flex-col gap-4">
|
||||
|
||||
@ -2,4 +2,7 @@ module.exports = {
|
||||
extends: [
|
||||
"next/core-web-vitals",
|
||||
],
|
||||
rules: {
|
||||
"react/jsx-indent": ["error", 2],
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user