format stuff

This commit is contained in:
Johannes Kirschbauer
2023-11-04 14:02:32 +01:00
parent b8c5419dba
commit 93f0f2141a
4 changed files with 7 additions and 5 deletions

View File

@@ -64,7 +64,9 @@ export default function RootLayout({
<AppContext.Consumer>
{(appState) => {
const showSidebarDerived = Boolean(
showSidebar && !appState.isLoading && appState.data.isJoined
showSidebar &&
!appState.isLoading &&
appState.data.isJoined,
);
return (
<>

View File

@@ -41,7 +41,7 @@ export default function ClanModules(props: ClanModulesProps) {
}, [clanName, formHooks]);
const handleChange = (
event: SelectChangeEvent<CreateMachineForm["modules"]>
event: SelectChangeEvent<CreateMachineForm["modules"]>,
) => {
const {
target: { value },

View File

@@ -44,7 +44,7 @@ export function CustomConfig(props: FormStepContentProps) {
}
return acc;
}, {}),
[schema]
[schema],
);
return (
@@ -109,7 +109,7 @@ function PureCustomConfig(props: PureCustomConfigProps) {
message: "invalid config",
});
toast.error(
"Configuration is invalid. Please check the highlighted fields for details."
"Configuration is invalid. Please check the highlighted fields for details.",
);
} else {
formHooks.clearErrors("config");

View File

@@ -72,7 +72,7 @@ export const MachineContextProvider = (props: MachineContextProviderProps) => {
if (!isLoading && !error && !isValidating && rawData) {
const { machines } = rawData.data;
return machines.filter((m) =>
filters.every((f) => m[f.name] === f.value)
filters.every((f) => m[f.name] === f.value),
);
}
return [];