Skip to content

Commit

Permalink
remove subset and use type
Browse files Browse the repository at this point in the history
  • Loading branch information
NaingAmity committed Jan 30, 2024
1 parent f038dee commit 206f72a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/CustomTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {
View,
} from 'react-native';
import { getStyles } from './styles';
import { TabNameSubset } from '../../enum/tabNameState';
import { TabName } from '../../enum/tabNameState';

interface ICustomTab {
onTabChange: (tabName: TabNameSubset) => void;
tabName: TabNameSubset[];
onTabChange: (tabName: TabName) => void;
tabName: TabName[];
}
const CustomTab = ({ tabName, onTabChange }: ICustomTab): ReactElement => {
const styles = getStyles();
Expand All @@ -24,7 +24,7 @@ const CustomTab = ({ tabName, onTabChange }: ICustomTab): ReactElement => {
name,
tabIndex,
}: {
name: TabNameSubset;
name: TabName;
tabIndex: number;
}) => {
setActiveTab(tabIndex);
Expand Down

0 comments on commit 206f72a

Please sign in to comment.