fix type errors

This commit is contained in:
Clément Le Bihan
2023-09-19 02:24:26 +02:00
parent dcca1b1f1c
commit e817021ede
5 changed files with 6 additions and 4 deletions
-2
View File
@@ -4,8 +4,6 @@ import TabNavigationDesktop from './TabNavigationDesktop';
import TabNavigationPhone from './TabNavigationPhone';
import { Ionicons } from '@expo/vector-icons';
import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import { RootState } from '../../state/Store';
import useColorScheme from '../../hooks/colorScheme';
export type NaviTab = {
+2 -1
View File
@@ -29,8 +29,9 @@ const TabNavigationButton = (props: TabNavigationButtonProps) => {
alignItems: 'center',
justifyContent: 'flex-start',
padding: '10px',
borderRadius: '8px',
borderRadius: 8,
flexGrow: 0,
// @ts-expect-error BoxShadow is not in the types but I want it this may be a legitimate error on my part
boxShadow: (() => {
if (isHovered) {
return '0px 0px 16px 0px rgba(0, 0, 0, 0.25)';
@@ -84,6 +84,7 @@ const TabNavigationDesktop = (props: TabNavigationDesktopProps) => {
<TabNavigationList
style={{
flexShrink: 0,
// @ts-expect-error gap is not in the types because we have an old version of react-native
gap: '20px',
}}
>
@@ -117,6 +118,7 @@ const TabNavigationDesktop = (props: TabNavigationDesktopProps) => {
<Divider />
<TabNavigationList
style={{
// @ts-expect-error gap is not in the types because we have an old version of react-native
gap: '20px',
}}
>
@@ -15,6 +15,7 @@ const TabNavigationList = (props: TabNavigationListProps) => {
alignItems: 'flex-start',
alignSelf: 'stretch',
flexDirection: 'column',
// @ts-expect-error gap is not in the types because we have an old version of react-native
gap: '8px',
},
props.style,
+1 -1
View File
@@ -35,7 +35,7 @@ const TabNavigationPhone = (props: TabNavigationPhoneProps) => {
flexDirection: 'row',
alignItems: 'center',
alignSelf: 'stretch',
borderRadius: '8px',
borderRadius: 8,
backgroundColor: 'rgba(16, 16, 20, 0.5)',
}}
>