components: remove redundant h import

This commit is contained in:
He4eT 2023-06-05 01:18:58 +03:00
commit cce69a2cd8
17 changed files with 0 additions and 22 deletions

View file

@ -1,5 +1,3 @@
import { h } from 'preact'
export default function LocalFileSelector ({ theme, setLocation, buildLink }) { export default function LocalFileSelector ({ theme, setLocation, buildLink }) {
const fileInputHandler = ({ target }) => { const fileInputHandler = ({ target }) => {
const file = target.files[0] const file = target.files[0]

View file

@ -1,5 +1,3 @@
import { h } from 'preact'
export default function TargetURLSelector ({ theme, setLocation, buildLink }) { export default function TargetURLSelector ({ theme, setLocation, buildLink }) {
const urlRE = /^(http|https):\/\/[^ "]+$/ const urlRE = /^(http|https):\/\/[^ "]+$/

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
import { import {

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useEffect, useRef, useState } from 'preact/hooks' import { useEffect, useRef, useState } from 'preact/hooks'
import MenuButton from './MenuButton/MenuButton' import MenuButton from './MenuButton/MenuButton'

View file

@ -1,5 +1,3 @@
import { h } from 'preact'
import * as s from './MenuButton.module.scss' import * as s from './MenuButton.module.scss'
export default function MenuButton ({ onClick }) { export default function MenuButton ({ onClick }) {

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useEffect, useState } from 'preact/hooks' import { useEffect, useState } from 'preact/hooks'
import TextMessage from './TextMessage' import TextMessage from './TextMessage'

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useEffect, useRef, useState } from 'preact/hooks' import { useEffect, useRef, useState } from 'preact/hooks'
import TextMessage from './TextMessage' import TextMessage from './TextMessage'

View file

@ -1,5 +1,3 @@
import { h } from 'preact'
export default function TextMessage ({ style, text }) { export default function TextMessage ({ style, text }) {
const defaultContent = ( const defaultContent = (
<span className={['message', style].join(' ')}> <span className={['message', style].join(' ')}>

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useState, useEffect } from 'preact/hooks' import { useState, useEffect } from 'preact/hooks'
import CheapGlkOte from 'cheap-glkote' import CheapGlkOte from 'cheap-glkote'

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
const fail = (details) => ( const fail = (details) => (

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useState, useEffect } from 'preact/hooks' import { useState, useEffect } from 'preact/hooks'
import { engineByFilename } from './common/engines' import { engineByFilename } from './common/engines'

View file

@ -1,5 +1,3 @@
import { h } from 'preact'
export default function ThemeSelector ({ themeEngine }) { export default function ThemeSelector ({ themeEngine }) {
const options = themeEngine.themes.map((theme) => ( const options = themeEngine.themes.map((theme) => (
<option <option

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
import GameEntry from import GameEntry from

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
import { import {

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
export default function NotFoundView () { export default function NotFoundView () {

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { useState, useEffect } from 'preact/hooks' import { useState, useEffect } from 'preact/hooks'
import UrlPlayer from '~/src/components/Player/UrlPlayer' import UrlPlayer from '~/src/components/Player/UrlPlayer'

View file

@ -1,4 +1,3 @@
import { h } from 'preact'
import { Link } from 'wouter-preact' import { Link } from 'wouter-preact'
import './ThemesView.css' import './ThemesView.css'