Add fetched plugins to CellData, close img
This commit is contained in:
parent
cd61c29a96
commit
735670c163
@ -4,8 +4,9 @@ import useSWRImmutable from "swr/immutable";
|
|||||||
|
|
||||||
import styles from "../styles/CellData.module.css";
|
import styles from "../styles/CellData.module.css";
|
||||||
import ModList from "./ModList";
|
import ModList from "./ModList";
|
||||||
import PluginList from "./ParsedPluginsList";
|
import ParsedPluginsList from "./ParsedPluginsList";
|
||||||
import { jsonFetcher } from "../lib/api";
|
import { jsonFetcher } from "../lib/api";
|
||||||
|
import FetchedPluginsList from "./FetchedPluginsList";
|
||||||
|
|
||||||
export interface Mod {
|
export interface Mod {
|
||||||
id: number;
|
id: number;
|
||||||
@ -110,7 +111,8 @@ const CellData: React.FC<Props> = ({ selectedCell, counts }) => {
|
|||||||
<span>{data.plugins_count}</span>
|
<span>{data.plugins_count}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<PluginList selectedCell={selectedCell} />
|
<ParsedPluginsList selectedCell={selectedCell} />
|
||||||
|
<FetchedPluginsList selectedCell={selectedCell} />
|
||||||
<ModList mods={data.mods} counts={counts} />
|
<ModList mods={data.mods} counts={counts} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @next/next/no-img-element */
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
@ -8,7 +9,7 @@ import {
|
|||||||
toggleFetchedPlugin,
|
toggleFetchedPlugin,
|
||||||
removeFetchedPlugin,
|
removeFetchedPlugin,
|
||||||
} from "../slices/plugins";
|
} from "../slices/plugins";
|
||||||
import styles from "../styles/FetchedPluginList.module.css";
|
import styles from "../styles/FetchedPluginsList.module.css";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
selectedCell?: { x: number; y: number };
|
selectedCell?: { x: number; y: number };
|
||||||
@ -67,7 +68,7 @@ const FetchedPluginsList: React.FC<Props> = ({ selectedCell }) => {
|
|||||||
onClick={() => dispatch(removeFetchedPlugin(plugin.hash))}
|
onClick={() => dispatch(removeFetchedPlugin(plugin.hash))}
|
||||||
className={styles["plugin-remove"]}
|
className={styles["plugin-remove"]}
|
||||||
>
|
>
|
||||||
✖
|
<img src="/img/close.svg" width={18} height={18} alt="close" />
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
@ -8,7 +8,7 @@ import {
|
|||||||
disableAllParsedPlugins,
|
disableAllParsedPlugins,
|
||||||
toggleParsedPlugin,
|
toggleParsedPlugin,
|
||||||
} from "../slices/plugins";
|
} from "../slices/plugins";
|
||||||
import styles from "../styles/ParsedPluginList.module.css";
|
import styles from "../styles/ParsedPluginsList.module.css";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
selectedCell?: { x: number; y: number };
|
selectedCell?: { x: number; y: number };
|
||||||
|
@ -31,7 +31,8 @@
|
|||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 14px;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-remove:hover {
|
.plugin-remove:hover {
|
Loading…
Reference in New Issue
Block a user