- {loading &&
Loading…
}
- {!loading && user && workerDetails.map(w => {
- const edit = edits[w.id] ?? { name: w.name, info: w.info ?? '', maintenance_mode: w.maintenance_mode };
- return (
-
+ );
+ })}
);
};
diff --git a/src/games/horde/components/modals/options-modal.tsx b/src/games/horde/components/modals/options-modal.tsx
index 3293e60..fe3167f 100644
--- a/src/games/horde/components/modals/options-modal.tsx
+++ b/src/games/horde/components/modals/options-modal.tsx
@@ -1,9 +1,7 @@
-import clsx from "clsx";
import { useEffect } from "preact/hooks";
import { useHordeState } from "../../contexts/state";
import { useInputState } from "@common/hooks/useInputState";
import { Modal } from "@common/components/Modal";
-import modalStyles from "../../assets/modal.module.css";
import styles from "../../assets/options-modal.module.css";
interface Props {
@@ -31,27 +29,27 @@ export const OptionsModal = ({ open, onClose }: Props) => {
};
return (
-
-
-
-
-
-
+ >}
+ >
+
);
};
diff --git a/src/games/horde/index.tsx b/src/games/horde/index.tsx
index 4350fd6..8eeb2c8 100644
--- a/src/games/horde/index.tsx
+++ b/src/games/horde/index.tsx
@@ -2,8 +2,6 @@ import { render } from "preact";
import { App } from "./components/app";
import { HordeStateProvider } from "./contexts/state";
-import './assets/style.css';
-
export default function main() {
render(
diff --git a/src/games/storywriter/components/menu.tsx b/src/games/storywriter/components/menu.tsx
index d0b2562..8dcb01f 100644
--- a/src/games/storywriter/components/menu.tsx
+++ b/src/games/storywriter/components/menu.tsx
@@ -322,9 +322,8 @@ export const Menu = ({ visible }: { visible: boolean }) => {
Settings
- {isSettingsOpen.value && (
-