mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 21:04:37 +03:00
Prettier
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { } from "react";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import * as GQL from "src/core/generated-graphql";
|
||||
|
||||
@@ -7,8 +7,7 @@ export class SceneHelpers {
|
||||
scene: GQL.SceneDataFragment | GQL.SlimSceneDataFragment,
|
||||
height: number
|
||||
) {
|
||||
if (!scene.studio)
|
||||
return;
|
||||
if (!scene.studio) return;
|
||||
const style: React.CSSProperties = {
|
||||
backgroundImage: `url('${scene.studio.image_path}')`,
|
||||
width: "100%",
|
||||
@@ -17,17 +16,14 @@ export class SceneHelpers {
|
||||
backgroundSize: "contain",
|
||||
display: "inline-block",
|
||||
backgroundPosition: "center",
|
||||
backgroundRepeat: "no-repeat",
|
||||
backgroundRepeat: "no-repeat"
|
||||
};
|
||||
return (
|
||||
<Link
|
||||
to={`/studios/${scene.studio.id}`}
|
||||
style={style}
|
||||
/>
|
||||
);
|
||||
return <Link to={`/studios/${scene.studio.id}`} style={style} />;
|
||||
}
|
||||
|
||||
public static getJWPlayerId(): string { return "main-jwplayer"; }
|
||||
public static getJWPlayerId(): string {
|
||||
return "main-jwplayer";
|
||||
}
|
||||
public static getPlayer(): any {
|
||||
return (window as any).jwplayer("main-jwplayer");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user