From f36c9565362b741c58672204fe0c155252affe28 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 24 Jan 2023 13:00:11 -0600 Subject: Resolve all remaining lint issues (#88) * Rework 'navIdx' variables from number arrays to strings to avoid equality-check failures in react hooks * Resolve all remaining lint issues * Fix tests * Use node v18 in gh action test --- src/view/screens/Debug.tsx | 80 +++++++++++++--------------------------------- 1 file changed, 22 insertions(+), 58 deletions(-) (limited to 'src/view/screens/Debug.tsx') diff --git a/src/view/screens/Debug.tsx b/src/view/screens/Debug.tsx index f6e2b389c..9365724a0 100644 --- a/src/view/screens/Debug.tsx +++ b/src/view/screens/Debug.tsx @@ -4,6 +4,7 @@ import {ViewHeader} from '../com/util/ViewHeader' import {ThemeProvider} from '../lib/ThemeContext' import {PaletteColorName} from '../lib/ThemeContext' import {usePalette} from '../lib/hooks/usePalette' +import {s} from '../lib/styles' import {Text} from '../com/util/text/Text' import {ViewSelector} from '../com/util/ViewSelector' @@ -48,7 +49,7 @@ function DebugInner({ const renderItem = item => { return ( - + + + {label} @@ -96,7 +97,7 @@ function Heading({label}: {label: string}) { function BaseView() { return ( - + @@ -109,14 +110,14 @@ function BaseView() { - + ) } function ControlsView() { return ( - + @@ -125,15 +126,15 @@ function ControlsView() { - + ) } function ErrorView() { return ( - - + + {}} /> - + - + - + {}} /> - + {}} @@ -171,16 +172,7 @@ function PaletteView({palette}: {palette: PaletteColorName}) { const defaultPal = usePalette('default') const pal = usePalette(palette) return ( - + {palette} colors Light text Link text @@ -197,21 +189,6 @@ function TypographyView() { const pal = usePalette('default') return ( - - 'xxl-thin' lorem ipsum dolor - - - 'xxl' lorem ipsum dolor - - - 'xxl-medium' lorem ipsum dolor - - - 'xxl-bold' lorem ipsum dolor - - - 'xxl-heavy' lorem ipsum dolor - 'xl-thin' lorem ipsum dolor @@ -300,9 +277,6 @@ function TypographyView() { Button - - Overline - ) } @@ -325,16 +299,12 @@ function ButtonsView() { const buttonStyles = {marginRight: 5} return ( - +