Skip to content

Commit 7326cfc

Browse files
Ashu11-Aactions-user
authored andcommitted
Prettified Code!
1 parent d2c7994 commit 7326cfc

Some content is hidden

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

47 files changed

+99
-94
lines changed

resources/scripts/components/FlashMessageRender.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Props = Readonly<{
1010

1111
const FlashMessageRender = ({ byKey, className }: Props) => {
1212
const flashes = useStoreState((state) =>
13-
state.flashes.items.filter((flash) => (byKey ? flash.key === byKey : true))
13+
state.flashes.items.filter((flash) => (byKey ? flash.key === byKey : true)),
1414
);
1515

1616
return flashes.length ? (

resources/scripts/components/dashboard/DashboardContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default () => {
3131
getServers({
3232
page,
3333
type: showOnlyAdmin && rootAdmin ? 'admin' : undefined,
34-
})
34+
}),
3535
);
3636

3737
useEffect(() => {

resources/scripts/components/dashboard/ServerRow.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const StatusIndicatorBox = styled(GreyRowBox)<{
3636
!$status || $status === 'offline'
3737
? tw`bg-red-500`
3838
: $status === 'running'
39-
? tw`bg-green-500`
40-
: tw`bg-yellow-500`};
39+
? tw`bg-green-500`
40+
: tw`bg-yellow-500`};
4141
}
4242
4343
&:hover .status-bar {
@@ -116,10 +116,10 @@ export default ({ server, className }: { server: Server; className?: string }) =
116116
{server.isTransferring
117117
? 'Transferindo'
118118
: server.status === 'installing'
119-
? 'Instalando'
120-
: server.status === 'restoring_backup'
121-
? 'Restaurando Backup'
122-
: 'Indisponível'}
119+
? 'Instalando'
120+
: server.status === 'restoring_backup'
121+
? 'Restaurando Backup'
122+
: 'Indisponível'}
123123
</span>
124124
</div>
125125
) : (

resources/scripts/components/dashboard/forms/AddReferralCodeForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export default () => {
3434
type: 'success',
3535
key: 'account:referral',
3636
message: 'Agora você está usando o Código de referência.',
37-
})
37+
}),
3838
)
3939
.catch((error) =>
4040
addFlash({
4141
type: 'danger',
4242
key: 'account:referral',
4343
title: 'Erro',
4444
message: httpErrorToHuman(error),
45-
})
45+
}),
4646
)
4747
.then(() => {
4848
resetForm();

resources/scripts/components/dashboard/forms/UpdateEmailAddressForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ export default () => {
3737
type: 'success',
3838
key: 'account:email',
3939
message: 'O seu E-mail principal foi atualizado.',
40-
})
40+
}),
4141
)
4242
.catch((error) =>
4343
addFlash({
4444
type: 'danger',
4545
key: 'account:email',
4646
title: 'Erro',
4747
message: httpErrorToHuman(error),
48-
})
48+
}),
4949
)
5050
.then(() => {
5151
resetForm();

resources/scripts/components/dashboard/forms/UpdatePasswordForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const schema = Yup.object().shape({
2525
'A confirmação da senha não corresponde à senha que você digitou.',
2626
function (value) {
2727
return value === this.parent.password;
28-
}
28+
},
2929
),
3030
});
3131

@@ -52,7 +52,7 @@ export default () => {
5252
type: 'danger',
5353
title: 'Error',
5454
message: httpErrorToHuman(error),
55-
})
55+
}),
5656
)
5757
.then(() => setSubmitting(false));
5858
};

resources/scripts/components/dashboard/forms/UpdateUsernameForm.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ export default () => {
3535
type: 'success',
3636
key: 'account:username',
3737
message: 'O seu usuário foi alterado.',
38-
})
38+
}),
3939
)
4040
.catch((error) =>
4141
addFlash({
4242
type: 'danger',
4343
key: 'account:username',
4444
title: 'Erro',
4545
message: httpErrorToHuman(error),
46-
})
46+
}),
4747
)
4848
.then(() => {
4949
resetForm();

resources/scripts/components/dashboard/search/SearchModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default ({ ...props }: Props) => {
5151
const isAdmin = useStoreState((state) => state.user.data!.rootAdmin);
5252
const [servers, setServers] = useState<Server[]>([]);
5353
const { clearAndAddHttpError, clearFlashes } = useStoreActions(
54-
(actions: Actions<ApplicationStore>) => actions.flashes
54+
(actions: Actions<ApplicationStore>) => actions.flashes,
5555
);
5656

5757
setLocale(pt);

resources/scripts/components/elements/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const Checkbox = ({ name, value, className, ...props }: Props & InputProps) => (
1717
{({ field, form }: FieldProps) => {
1818
if (!Array.isArray(field.value)) {
1919
console.error(
20-
'Tentativa de montar uma caixa de seleção usando um valor de campo que não é uma matriz.'
20+
'Tentativa de montar uma caixa de seleção usando um valor de campo que não é uma matriz.',
2121
);
2222

2323
return null;

resources/scripts/components/elements/Field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const Field = forwardRef<HTMLInputElement, Props>(
4141
</div>
4242
)}
4343
</FormikField>
44-
)
44+
),
4545
);
4646
Field.displayName = 'Field';
4747

0 commit comments

Comments
 (0)