Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cj12312021 committed Aug 1, 2023
1 parent 632a1e0 commit eab9ae3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions ui/v2.5/src/components/Movies/MovieDetails/Movie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import { ConfigurationContext } from "src/hooks/Config";
import { IUIConfig } from "src/core/config";
import ImageUtils from "src/utils/image";
import { useRatingKeybinds } from "src/hooks/keybinds";
import UAParser from "ua-parser-js";

interface IProps {
movie: GQL.MovieDataFragment;
Expand Down Expand Up @@ -65,7 +64,9 @@ const MoviePage: React.FC<IProps> = ({ movie }) => {
const [backImage, setBackImage] = useState<string | null>();
const [encodingImage, setEncodingImage] = useState<boolean>(false);

const appleRendering = /(ipad)/i.test(navigator.userAgent) || /(macintosh.*safari)/i.test(navigator.userAgent);
const appleRendering =
/(ipad)/i.test(navigator.userAgent) ||
/(macintosh.*safari)/i.test(navigator.userAgent);

const defaultImage =
movie.front_image_path && movie.front_image_path.includes("default=true")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const PerformerPage: React.FC<IProps> = ({ performer }) => {
const [encodingImage, setEncodingImage] = useState<boolean>(false);
const [loadStickyHeader, setLoadStickyHeader] = useState<boolean>(false);

const appleRendering = /(ipad)/i.test(navigator.userAgent) || /(macintosh.*safari)/i.test(navigator.userAgent);
const appleRendering =
/(ipad)/i.test(navigator.userAgent) ||
/(macintosh.*safari)/i.test(navigator.userAgent);

const activeImage = useMemo(() => {
const performerImage = performer.image_path;
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Studios/StudioDetails/Studio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ const StudioPage: React.FC<IProps> = ({ studio }) => {
const [collapsed, setCollapsed] = useState<boolean>(!showAllDetails);
const [loadStickyHeader, setLoadStickyHeader] = useState<boolean>(false);

const appleRendering = /(ipad)/i.test(navigator.userAgent) || /(macintosh.*safari)/i.test(navigator.userAgent);
const appleRendering =
/(ipad)/i.test(navigator.userAgent) ||
/(macintosh.*safari)/i.test(navigator.userAgent);

// Editing state
const [isEditing, setIsEditing] = useState<boolean>(false);
Expand Down
4 changes: 3 additions & 1 deletion ui/v2.5/src/components/Tags/TagDetails/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const TagPage: React.FC<IProps> = ({ tag }) => {
const [collapsed, setCollapsed] = useState<boolean>(!showAllDetails);
const [loadStickyHeader, setLoadStickyHeader] = useState<boolean>(false);

const appleRendering = /(ipad)/i.test(navigator.userAgent) || /(macintosh.*safari)/i.test(navigator.userAgent);
const appleRendering =
/(ipad)/i.test(navigator.userAgent) ||
/(macintosh.*safari)/i.test(navigator.userAgent);

const { tab = "scenes" } = useParams<ITabParams>();

Expand Down

0 comments on commit eab9ae3

Please sign in to comment.