From 142f95a12c80fd29126a7c3e2a9b373974371f0b Mon Sep 17 00:00:00 2001 From: Mehrad Rousta Date: Tue, 29 Oct 2024 18:07:17 +0330 Subject: [PATCH] fix: lint errors --- src/renderer/App.tsx | 45 ------------------------------------- src/renderer/Controller.tsx | 24 +++++++++++++++----- src/renderer/Projector.tsx | 3 ++- src/renderer/const.ts | 44 ++++++++++++++++++++++++++++++++++++ src/renderer/types.ts | 4 ++-- 5 files changed, 67 insertions(+), 53 deletions(-) create mode 100644 src/renderer/const.ts diff --git a/src/renderer/App.tsx b/src/renderer/App.tsx index 564fbc7..975dab8 100644 --- a/src/renderer/App.tsx +++ b/src/renderer/App.tsx @@ -4,51 +4,6 @@ import './Controller.css'; import { Controller } from './Controller'; import { Projector } from './Projector'; -export const defaultVideos = [ - { - id: 'video-1', - show: false, - position: { top: '5%', left: '10%' }, - size: { width: '320px', height: '180px' }, - }, - { - id: 'video-2', - show: false, - position: { top: '37%', left: '10%' }, - size: { width: '320px', height: '180px' }, - }, - { - id: 'video-3', - show: false, - position: { top: '70%', left: '10%' }, - size: { width: '320px', height: '180px' }, - }, -]; - -export const defaultCounters = [ - { - id: 'counter-1', - count: 0, - show: false, - position: { top: '0%', left: '60%' }, - size: '4em', - }, - { - id: 'counter-2', - count: 0, - show: false, - position: { top: '30%', left: '60%' }, - size: '4em', - }, - { - id: 'counter-3', - count: 0, - show: false, - position: { top: '60%', left: '60%' }, - size: '4em', - }, -]; - export default function App() { return ( diff --git a/src/renderer/Controller.tsx b/src/renderer/Controller.tsx index f5ee4b9..9965f1e 100644 --- a/src/renderer/Controller.tsx +++ b/src/renderer/Controller.tsx @@ -1,6 +1,9 @@ +/* eslint-disable jsx-a11y/label-has-associated-control */ +/* eslint-disable import/prefer-default-export */ +/* eslint-disable no-else-return */ import { useState } from 'react'; import type { Counter, Position, Size, Video } from './types'; -import { defaultCounters, defaultVideos } from './App'; +import { defaultCounters, defaultVideos } from './const'; // Controller Component export function Controller() { @@ -119,7 +122,9 @@ export function Controller() { return (

Theater VFX Controller

- {' '} + {' '}