This commit is contained in:
Infinite
2020-01-20 21:56:23 +01:00
parent 9827647122
commit 244c8ff234
82 changed files with 3729 additions and 2304 deletions

View File

@@ -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");
}