Add gallery icon in "scene card" and "scene list table" (#799)

This commit is contained in:
caustico
2020-09-12 11:11:43 +02:00
committed by GitHub
parent 981b2622a5
commit 933d6d0bd5
2 changed files with 30 additions and 2 deletions

View File

@@ -1,9 +1,11 @@
// @ts-nocheck
/* eslint-disable jsx-a11y/control-has-associated-label */
import React from "react";
import { Table } from "react-bootstrap";
import { Table, Button } from "react-bootstrap";
import { Link } from "react-router-dom";
import * as GQL from "src/core/generated-graphql";
import { NavUtils, TextUtils } from "src/utils";
import { Icon } from "src/components/Shared";
interface ISceneListTableProps {
scenes: GQL.SlimSceneDataFragment[];
@@ -68,6 +70,15 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
)}
</td>
<td>{renderMovies(scene)}</td>
<td>
{scene.gallery && (
<Button className="minimal">
<Link to={`/galleries/${scene.gallery.id}`}>
<Icon icon="image" />
</Link>
</Button>
)}
</td>
</tr>
);
@@ -84,6 +95,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
<th>Performers</th>
<th>Studio</th>
<th>Movies</th>
<th>Gallery</th>
</tr>
</thead>
<tbody>{props.scenes.map(renderSceneRow)}</tbody>