@@ -172,10 +208,12 @@ function MapPoolSelector({
key={mode.short}
className={clsx("maps__mode-button", "outline-theme", {
selected,
+ hidden: !editMode && !selected,
})}
onClick={() =>
handleMapPoolChange({ mode: mode.short, stageId })
}
+ disabled={!editMode}
type="button"
>
();
+
+ if (data) {
+ return (
+
+ Code: {data.code} - Made by: {discordFullName(data.owner)}
+
+ );
+ }
+
const hasChanges = (() => {
for (const mode of modesShort) {
if (mapPool[mode].length !== DEFAULT_MAP_POOL[mode].length) {
@@ -234,7 +282,11 @@ function MapPoolLoaderSaver({ mapPool }: { mapPool: MapPool }) {
maxLength={MAPS.CODE_MAX_LENGTH}
/>
-