Skip to content

Commit 86969ad

Browse files
committed
app:chore: run check
1 parent bcf0a33 commit 86969ad

52 files changed

Lines changed: 493 additions & 494 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/app/app/(auth)/[pathname]/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ export default async function AuthPage({
2424
<AuthCard pathname={pathname} />
2525
<div className="block py-12 text-center text-muted-foreground text-sm sm:fixed sm:right-0 sm:bottom-0 sm:left-0 dark:text-muted-foreground/80">
2626
<a
27-
target="_blank"
28-
href="/terms-of-service"
2927
className="hover:underline"
28+
href="/terms-of-service"
3029
rel="noopener noreferrer"
30+
target="_blank"
3131
>
3232
Terms of Service
3333
</a>
3434
<span className="mx-2">|</span>
3535
<a
36-
target="_blank"
37-
href="/privacy"
3836
className="hover:underline"
37+
href="/privacy"
3938
rel="noopener noreferrer"
39+
target="_blank"
4040
>
4141
Privacy Policy
4242
</a>

apps/app/app/(dashboard)/app/account/components/account-skeletons.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export function ProvidersManagementCardSkeleton() {
103103
{/* Provider items skeleton */}
104104
{Array.from({ length: 5 }).map((_, index) => (
105105
<div
106-
key={index}
107106
className="flex items-center justify-between rounded-lg border p-3"
107+
key={index}
108108
>
109109
<div className="flex items-center gap-3">
110110
<Skeleton className="h-5 w-5" />
@@ -160,8 +160,8 @@ export function MultipleAccountsManagementCardSkeleton() {
160160
<div className="space-y-3">
161161
{Array.from({ length: 2 }).map((_, index) => (
162162
<div
163-
key={index}
164163
className="flex items-center justify-between rounded-lg border p-3"
164+
key={index}
165165
>
166166
<div className="flex items-center gap-3">
167167
<Skeleton className="h-8 w-8 rounded-full" />
@@ -227,8 +227,8 @@ export function SessionsManagementCardSkeleton() {
227227
<div className="space-y-3">
228228
{Array.from({ length: 3 }).map((_, index) => (
229229
<div
230-
key={index}
231230
className="flex items-center justify-between rounded-lg border p-3 max-sm:flex-col max-sm:items-start max-sm:gap-y-2"
231+
key={index}
232232
>
233233
<div className="flex items-center gap-3 max-sm:w-full max-sm:justify-between">
234234
<div className="flex items-center gap-x-2">

apps/app/app/(dashboard)/app/account/components/multiple-accounts-management-card.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import { MultipleAccountsManagementCardSkeleton } from './account-skeletons';
5353
function UserAvatar({ user }: { user: Session['user'] | LDSUser }) {
5454
return (
5555
<Avatar className="h-8 w-8 rounded-full">
56-
<AvatarImage src={user.image || ''} alt={user.name} />
56+
<AvatarImage alt={user.name} src={user.image || ''} />
5757
<AvatarFallback className="rounded-full">
5858
{user.name?.charAt(0).toUpperCase() ||
5959
user.email?.charAt(0).toUpperCase()}
@@ -236,8 +236,8 @@ export function MultipleAccountsManagementCard() {
236236

237237
return (
238238
<div
239-
key={session.session.id || index}
240239
className="flex items-center justify-between rounded-lg border p-3"
240+
key={session.session.id || index}
241241
>
242242
<div className="flex items-center gap-3">
243243
<UserAvatar user={session.user} />
@@ -273,15 +273,15 @@ export function MultipleAccountsManagementCard() {
273273

274274
<div className="flex items-center gap-2">
275275
<SpinnerButton
276-
size="sm"
277-
variant="outline"
278-
isLoading={isSwitchingThis}
279276
disabled={isSwitching || isRemoving}
277+
isLoading={isSwitchingThis}
280278
onClick={() => handleSwitchAccount(session)}
279+
size="sm"
280+
variant="outline"
281281
>
282282
{isSwitchingThis ? (
283283
<>
284-
<Loader2 size={15} className="mr-2 animate-spin" />
284+
<Loader2 className="mr-2 animate-spin" size={15} />
285285
Switching...
286286
</>
287287
) : (
@@ -293,15 +293,15 @@ export function MultipleAccountsManagementCard() {
293293
</SpinnerButton>
294294

295295
<SpinnerButton
296-
size="sm"
297-
variant="outline"
298-
isLoading={isRemovingThis}
299296
disabled={isSwitching || isRemoving}
297+
isLoading={isRemovingThis}
300298
onClick={() => handleRemoveAccount(session)}
299+
size="sm"
300+
variant="outline"
301301
>
302302
{isRemovingThis ? (
303303
<>
304-
<Loader2 size={15} className="mr-2 animate-spin" />
304+
<Loader2 className="mr-2 animate-spin" size={15} />
305305
Removing...
306306
</>
307307
) : (
@@ -330,9 +330,9 @@ export function MultipleAccountsManagementCard() {
330330
</p>
331331
<Button
332332
asChild
333+
className="max-sm:w-full"
333334
size="sm"
334335
variant="outline"
335-
className="max-sm:w-full"
336336
>
337337
<Link href="/login">
338338
<Plus className="mr-2 h-4 w-4" />
@@ -343,7 +343,7 @@ export function MultipleAccountsManagementCard() {
343343
)}
344344

345345
{/* Remove Account Confirmation Dialog */}
346-
<Dialog open={isRemoveDialogOpen} onOpenChange={setIsRemoveDialogOpen}>
346+
<Dialog onOpenChange={setIsRemoveDialogOpen} open={isRemoveDialogOpen}>
347347
<DialogContent>
348348
<DialogHeader>
349349
<DialogTitle>Remove Account</DialogTitle>
@@ -366,17 +366,17 @@ export function MultipleAccountsManagementCard() {
366366
</div>
367367
)}
368368
<div className="flex justify-end gap-2">
369-
<Button variant="outline" onClick={cancelRemoveAccount}>
369+
<Button onClick={cancelRemoveAccount} variant="outline">
370370
Cancel
371371
</Button>
372372
<SpinnerButton
373-
variant="destructive"
374373
isLoading={isRemoving}
375374
onClick={confirmRemoveAccount}
375+
variant="destructive"
376376
>
377377
{isRemoving ? (
378378
<>
379-
<Loader2 size={15} className="mr-2 animate-spin" />
379+
<Loader2 className="mr-2 animate-spin" size={15} />
380380
Removing...
381381
</>
382382
) : (

0 commit comments

Comments
 (0)