Skip to content

Commit 5f64e30

Browse files
committed
types imports optimized
1 parent d617680 commit 5f64e30

10 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/components/FeaturedIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box, Icon } from '@baca/design-system'
2-
import { IconNames } from '@baca/types/icon'
2+
import { IconNames } from '@baca/types'
33

44
type FeatureIconSize = 'sm' | 'md' | 'lg' | 'xl'
55

src/design-system/bottomSheets/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IconNames } from '@baca/types/icon'
1+
import { IconNames } from '@baca/types'
22
import { BottomSheetModal } from '@gorhom/bottom-sheet'
33
import { RefObject } from 'react'
44

src/design-system/components/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useTheme } from '@baca/hooks'
2-
import { IconNames } from '@baca/types/icon'
2+
import { IconNames } from '@baca/types'
33
import { getColorValue } from '@baca/utils'
44
import {
55
useMemo,

src/design-system/components/Icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useTheme } from '@baca/hooks'
2-
import { IconNames } from '@baca/types/icon'
2+
import { IconNames } from '@baca/types'
33
import { getColorValue } from '@baca/utils'
44
import { createIconSetFromIcoMoon } from '@expo/vector-icons'
55
import iconJson from 'assets/icomoon/selection.json'

src/design-system/components/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FontWeight, TextFontSize, _appTheme } from '@baca/design-system'
2-
import { IconNames } from '@baca/types/icon'
2+
import { IconNames } from '@baca/types'
33
import { DimensionValue, TextStyle, ViewProps, ViewStyle, TextInputProps } from 'react-native'
44

55
import { BoxProps } from './Box'

src/hooks/forms/useTestForm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestFormValues } from '@baca/types/testForm'
1+
import { TestFormValues } from '@baca/types'
22
import { isError } from '@tanstack/react-query'
33
import { useState } from 'react'
44
import { FieldPath, useForm } from 'react-hook-form'

src/hooks/usePasswordValidation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { REGEX } from '@baca/constants'
22
import { Box, Icon, Row, Text } from '@baca/design-system'
3-
import { IconNames } from '@baca/types/icon'
3+
import { IconNames } from '@baca/types'
44
import { useCallback, useMemo, useState } from 'react'
55
import { useTranslation } from 'react-i18next'
66

src/hooks/useSecurePassword.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IconNames } from '@baca/types/icon'
1+
import { IconNames } from '@baca/types'
22
import { useCallback, useState } from 'react'
33

44
export const useSecurePassword = (type?: 'text' | 'password') => {

src/navigation/tabNavigator/components/SideBarTabItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Icon, Row, Text } from '@baca/design-system'
2-
import { IconNames } from '@baca/types/icon'
2+
import { IconNames } from '@baca/types'
33
import { Platform, StyleSheet } from 'react-native'
44

55
import { TabBarItemWrapper } from './TabBarItemWrapper'

src/navigation/tabNavigator/navigation-config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { I18nKeys } from '@baca/types/i18next'
2-
import { IconNames } from '@baca/types/icon'
1+
import { I18nKeys, IconNames } from '@baca/types'
32

43
type Tab = {
54
// This will be passed to translations object and translated in the app

0 commit comments

Comments
 (0)