format stuff
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user