1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Use consistent import style

This commit is contained in:
Bill Thornton 2024-08-15 02:33:50 -04:00
parent 3e6fdc8f04
commit 422adde900
23 changed files with 37 additions and 30 deletions

View file

@ -1,5 +1,6 @@
import React, { FunctionComponent } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
const createButtonElement = ({ type, id, className, title, leftIcon, rightIcon }: IProps) => ({
__html: `<button

View file

@ -1,6 +1,7 @@
import escapeHTML from 'escape-html';
import React, { type FC } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
const createCheckBoxElement = ({
labelClassName,

View file

@ -1,5 +1,6 @@
import React, { FunctionComponent } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
type IProps = {
is?: string;

View file

@ -1,6 +1,6 @@
import React, { type FC, useCallback, useEffect, useMemo, useRef } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
interface CreateInputElementParams {
type?: string

View file

@ -1,5 +1,6 @@
import React, { FunctionComponent } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
const createLinkElement = ({ className, title, href }: { className?: string, title?: string, href?: string }) => ({
__html: `<a

View file

@ -1,5 +1,6 @@
import React, { FunctionComponent } from 'react';
import globalize from '../lib/globalize';
import globalize from 'lib/globalize';
const createSelectElement = ({ name, id, required, label, option }: { name?: string, id?: string, required?: string, label?: string, option?: React.ReactNode }) => ({
__html: `<select

View file

@ -1,6 +1,6 @@
import React, { type FC, useCallback, useEffect, useRef, useState } from 'react';
import scrollerFactory from 'lib/scroller';
import globalize from '../../lib/globalize';
import globalize from 'lib/globalize';
import IconButton from '../emby-button/IconButton';
import './emby-scrollbuttons.scss';
import { ScrollDirection, scrollerItemSlideIntoView } from './utils';

View file

@ -1,7 +1,7 @@
import './emby-scrollbuttons.scss';
import 'webcomponents.js/webcomponents-lite';
import '../emby-button/paper-icon-button-light';
import globalize from '../../lib/globalize';
import globalize from 'lib/globalize';
import { scrollerItemSlideIntoView } from './utils';
const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);