mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 16:34:02 +01:00
ImageDetailPanel Patch Component (#5245)
This commit is contained in:
parent
a3838734c5
commit
129dd0ffcc
2 changed files with 119 additions and 114 deletions
|
|
@ -6,11 +6,14 @@ import { PerformerCard } from "src/components/Performers/PerformerCard";
|
||||||
import { sortPerformers } from "src/core/performers";
|
import { sortPerformers } from "src/core/performers";
|
||||||
import { FormattedMessage, useIntl } from "react-intl";
|
import { FormattedMessage, useIntl } from "react-intl";
|
||||||
import { PhotographerLink } from "src/components/Shared/Link";
|
import { PhotographerLink } from "src/components/Shared/Link";
|
||||||
|
import { PatchComponent } from "../../../patch";
|
||||||
interface IImageDetailProps {
|
interface IImageDetailProps {
|
||||||
image: GQL.ImageDataFragment;
|
image: GQL.ImageDataFragment;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ImageDetailPanel: React.FC<IImageDetailProps> = (props) => {
|
export const ImageDetailPanel: React.FC<IImageDetailProps> = PatchComponent(
|
||||||
|
"ImageDetailPanel",
|
||||||
|
(props) => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
function renderDetails() {
|
function renderDetails() {
|
||||||
|
|
@ -133,4 +136,5 @@ export const ImageDetailPanel: React.FC<IImageDetailProps> = (props) => {
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
);
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,7 @@ Returns `void`.
|
||||||
- `GallerySelect`
|
- `GallerySelect`
|
||||||
- `GallerySelect.sort`
|
- `GallerySelect.sort`
|
||||||
- `Icon`
|
- `Icon`
|
||||||
|
- `ImageDetailPanel`
|
||||||
- `ModalSetting`
|
- `ModalSetting`
|
||||||
- `MovieIDSelect`
|
- `MovieIDSelect`
|
||||||
- `MovieSelect`
|
- `MovieSelect`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue