mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 13:13:25 +00:00
fix lint
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
import { useTheme } from "tamagui";
|
||||
|
||||
interface SvgTabBarIconProps {
|
||||
@@ -12,7 +11,9 @@ export default function SvgTabBarIcon({
|
||||
children,
|
||||
}: SvgTabBarIconProps) {
|
||||
const theme = useTheme();
|
||||
const fillColor = focused ? theme.tabBarIconFocused.val : theme.tabBarIcon.val;
|
||||
const fillColor = focused
|
||||
? theme.tabBarIconFocused.val
|
||||
: theme.tabBarIcon.val;
|
||||
|
||||
if (React.isValidElement(children)) {
|
||||
return React.cloneElement(children, { fillColor } as React.Attributes);
|
||||
|
Reference in New Issue
Block a user