diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-09-09 18:38:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-09 08:38:21 -0700 |
commit | 53e43a957c2e0f3f020c34653cbf5029ec6dd8bb (patch) | |
tree | 71f93d1c41d64109e600bbe91056b4b4e07c83e1 /src/alf | |
parent | bb30b592d787870adc4b4d3e5029d8dc3125f7e7 (diff) | |
download | voidsky-53e43a957c2e0f3f020c34653cbf5029ec6dd8bb.tar.zst |
run `yarn lint --fix` (#9013)
Diffstat (limited to 'src/alf')
-rw-r--r-- | src/alf/themes.ts | 2 | ||||
-rw-r--r-- | src/alf/types.ts | 2 | ||||
-rw-r--r-- | src/alf/util/themeSelector.ts | 2 | ||||
-rw-r--r-- | src/alf/util/useColorModeTheme.ts | 4 | ||||
-rw-r--r-- | src/alf/util/useGutters.ts | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/src/alf/themes.ts b/src/alf/themes.ts index 82b2e1b40..bb3c62c49 100644 --- a/src/alf/themes.ts +++ b/src/alf/themes.ts @@ -1,5 +1,5 @@ import {atoms} from '#/alf/atoms' -import {Palette, Theme} from '#/alf/types' +import {type Palette, type Theme} from '#/alf/types' import { BLUE_HUE, defaultScale, diff --git a/src/alf/types.ts b/src/alf/types.ts index 5bac690e2..d2ac5dbaa 100644 --- a/src/alf/types.ts +++ b/src/alf/types.ts @@ -1,4 +1,4 @@ -import {StyleProp, TextStyle, ViewStyle} from 'react-native' +import {type StyleProp, type TextStyle, type ViewStyle} from 'react-native' export type TextStyleProp = { style?: StyleProp<TextStyle> diff --git a/src/alf/util/themeSelector.ts b/src/alf/util/themeSelector.ts index e79f86387..c118b6506 100644 --- a/src/alf/util/themeSelector.ts +++ b/src/alf/util/themeSelector.ts @@ -1,4 +1,4 @@ -import {ThemeName} from '#/alf/types' +import {type ThemeName} from '#/alf/types' export function select<T>(name: ThemeName, options: Record<ThemeName, T>) { switch (name) { diff --git a/src/alf/util/useColorModeTheme.ts b/src/alf/util/useColorModeTheme.ts index 561a504b2..b0b4f9e7c 100644 --- a/src/alf/util/useColorModeTheme.ts +++ b/src/alf/util/useColorModeTheme.ts @@ -1,10 +1,10 @@ import React from 'react' -import {ColorSchemeName, useColorScheme} from 'react-native' +import {type ColorSchemeName, useColorScheme} from 'react-native' import {isWeb} from '#/platform/detection' import {useThemePrefs} from '#/state/shell' import {dark, dim, light} from '#/alf/themes' -import {ThemeName} from '#/alf/types' +import {type ThemeName} from '#/alf/types' export function useColorModeTheme(): ThemeName { const theme = useThemeName() diff --git a/src/alf/util/useGutters.ts b/src/alf/util/useGutters.ts index 57dd4e80b..265d0f23c 100644 --- a/src/alf/util/useGutters.ts +++ b/src/alf/util/useGutters.ts @@ -1,6 +1,6 @@ import React from 'react' -import {Breakpoint, useBreakpoints} from '#/alf/breakpoints' +import {type Breakpoint, useBreakpoints} from '#/alf/breakpoints' import * as tokens from '#/alf/tokens' type Gutter = 'compact' | 'base' | 'wide' | 0 |