diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d289460..1341136 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,4 +15,4 @@ jobs: with: cache: yarn - run: yarn install --frozen-lockfile - - run: yarn lint + - run: yarn lint --max-warnings 0 diff --git a/src/AntDesign.ts b/src/AntDesign.ts index 0ea712f..0da2647 100644 --- a/src/AntDesign.ts +++ b/src/AntDesign.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/AntDesign.ttf'; diff --git a/src/Entypo.ts b/src/Entypo.ts index 741ae1d..961355a 100644 --- a/src/Entypo.ts +++ b/src/Entypo.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Entypo.ttf'; diff --git a/src/EvilIcons.ts b/src/EvilIcons.ts index 1e9293a..3bf6f4a 100644 --- a/src/EvilIcons.ts +++ b/src/EvilIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/EvilIcons.ttf'; diff --git a/src/Feather.ts b/src/Feather.ts index 4da05df..28d38a3 100644 --- a/src/Feather.ts +++ b/src/Feather.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Feather.ttf'; diff --git a/src/FontAwesome.ts b/src/FontAwesome.ts index 963bf12..099b7bc 100644 --- a/src/FontAwesome.ts +++ b/src/FontAwesome.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/FontAwesome.ttf'; diff --git a/src/FontAwesome5.ts b/src/FontAwesome5.ts index 8016066..fb9ea92 100644 --- a/src/FontAwesome5.ts +++ b/src/FontAwesome5.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import { createFA5iconSet } from './createIconSetFromFontAwesome5'; import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome5Free.json'; diff --git a/src/FontAwesome6.ts b/src/FontAwesome6.ts index c02eb41..edb0ba1 100644 --- a/src/FontAwesome6.ts +++ b/src/FontAwesome6.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import { createFA6iconSet } from './createIconSetFromFontAwesome6'; import glyphMap from './vendor/react-native-vector-icons/glyphmaps/FontAwesome6Free.json'; diff --git a/src/Fontisto.ts b/src/Fontisto.ts index f6089b4..a934117 100644 --- a/src/Fontisto.ts +++ b/src/Fontisto.ts @@ -2,7 +2,7 @@ * Feather icon set component. * Usage: */ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Fontisto.ttf'; diff --git a/src/Foundation.ts b/src/Foundation.ts index ef69cee..17df54f 100644 --- a/src/Foundation.ts +++ b/src/Foundation.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Foundation.ttf'; diff --git a/src/Icons.ts b/src/Icons.ts index f487f08..30c3566 100644 --- a/src/Icons.ts +++ b/src/Icons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; export { default as AntDesign } from './AntDesign'; export { default as Entypo } from './Entypo'; diff --git a/src/Ionicons.ts b/src/Ionicons.ts index abe471f..1c97b5c 100644 --- a/src/Ionicons.ts +++ b/src/Ionicons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Ionicons.ttf'; diff --git a/src/MaterialCommunityIcons.ts b/src/MaterialCommunityIcons.ts index 024ee4c..e4d714e 100644 --- a/src/MaterialCommunityIcons.ts +++ b/src/MaterialCommunityIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf'; diff --git a/src/MaterialIcons.ts b/src/MaterialIcons.ts index 8a0b5e8..47cb048 100644 --- a/src/MaterialIcons.ts +++ b/src/MaterialIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/MaterialIcons.ttf'; diff --git a/src/Octicons.ts b/src/Octicons.ts index a989be2..fadf240 100644 --- a/src/Octicons.ts +++ b/src/Octicons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Octicons.ttf'; diff --git a/src/SimpleLineIcons.ts b/src/SimpleLineIcons.ts index 5e036a3..4c34fc6 100644 --- a/src/SimpleLineIcons.ts +++ b/src/SimpleLineIcons.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/SimpleLineIcons.ttf'; diff --git a/src/Zocial.ts b/src/Zocial.ts index 359aef9..6878482 100644 --- a/src/Zocial.ts +++ b/src/Zocial.ts @@ -1,4 +1,4 @@ -"use client"; +'use client'; import createIconSet from './createIconSet'; import font from './vendor/react-native-vector-icons/Fonts/Zocial.ttf'; diff --git a/src/createMultiStyleIconSet.ts b/src/createMultiStyleIconSet.ts index 3d86805..ced5327 100644 --- a/src/createMultiStyleIconSet.ts +++ b/src/createMultiStyleIconSet.ts @@ -58,7 +58,7 @@ export default function createMultiStyleIconSet(styles: FontStyles, optionsInput const family = options.fallbackFamily(name); if (styleNames.indexOf(family) === -1) { - return options.defaultStyle; + return iconSets[options.defaultStyle]; } return iconSets[family];