add p4 factories to factory ID filter and remove unused imports

This commit is contained in:
Calli
2023-08-02 14:51:53 +03:00
parent 0fcc44274f
commit b13ae22dca
2 changed files with 15 additions and 11 deletions

View File

@@ -1,14 +1,7 @@
import { Button, Tooltip, Typography, useTheme } from "@mui/material"; import { Button, Tooltip, Typography, useTheme } from "@mui/material";
import { AccessToken, Planet, PlanetInfo, PlanetInfoUniverse } from "@/types"; import { AccessToken, Planet, PlanetInfo, PlanetInfoUniverse } from "@/types";
import { Api } from "@/esi-api"; import { Api } from "@/esi-api";
import { import { forwardRef, useContext, useEffect, useState } from "react";
Dispatch,
SetStateAction,
forwardRef,
useContext,
useEffect,
useState,
} from "react";
import { DateTime } from "luxon"; import { DateTime } from "luxon";
import { import {
EXTRACTOR_TYPE_IDS, EXTRACTOR_TYPE_IDS,
@@ -201,7 +194,7 @@ export const PlanetTableRow = ({
alt="" alt=""
width={theme.custom.cardImageSize / 6} width={theme.custom.cardImageSize / 6}
height={theme.custom.cardImageSize / 6} height={theme.custom.cardImageSize / 6}
style={{marginRight: "5px"}} style={{ marginRight: "5px" }}
/> />
{planetInfoUniverse?.name} {planetInfoUniverse?.name}
</div> </div>
@@ -289,7 +282,14 @@ export const PlanetTableRow = ({
</div> </div>
</TableCell> </TableCell>
<TableCell> <TableCell>
<div style={{ display: "flex", flexDirection: "column", minWidth: "4em", textAlign: "end" }}> <div
style={{
display: "flex",
flexDirection: "column",
minWidth: "4em",
textAlign: "end",
}}
>
{exports.map((e) => ( {exports.map((e) => (
<Typography <Typography
key={`export-praisal-${character.character.characterId}-${planet.planet_id}-${e.typeId}`} key={`export-praisal-${character.character.characterId}-${planet.planet_id}-${e.typeId}`}

View File

@@ -921,7 +921,11 @@ export const PI_SCHEMATICS = [
]; ];
export const FACTORY_IDS = () => export const FACTORY_IDS = () =>
PI_TYPES_ARRAY.filter((t) => t.name.indexOf("Industry Facility") !== -1); PI_TYPES_ARRAY.filter(
(t) =>
t.name.indexOf("Industry Facility") !== -1 ||
t.name.indexOf("High-Tech Production Plant") !== -1
);
export const STORAGE_IDS = () => export const STORAGE_IDS = () =>
PI_TYPES_ARRAY.filter( PI_TYPES_ARRAY.filter(