Skip to content

Commit

Permalink
fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Dec 11, 2023
1 parent 1ba1b48 commit 47a827d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
7 changes: 3 additions & 4 deletions src/components/HeaderGap/index.desktop.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import React, {memo} from 'react';
import {View} from 'react-native';
import useThemeStyles from '@styles/useThemeStyles';
import HeaderGapComponent from './types';
import HeaderGapProps from './types';

// eslint-disable-next-line react/function-component-definition
const HeaderGap: HeaderGapComponent = ({styles}) => {
function HeaderGap({styles}: HeaderGapProps) {
const themeStyles = useThemeStyles();
return <View style={[themeStyles.headerGap, styles]} />;
};
}

HeaderGap.displayName = 'HeaderGap';

Expand Down
10 changes: 7 additions & 3 deletions src/components/HeaderGap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import HeaderGapComponent from './types';
import {ReactNode} from 'react';
import HeaderGapProps from './types';

// eslint-disable-next-line react/function-component-definition
const HeaderGap: HeaderGapComponent = () => null;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function HeaderGap({styles}: HeaderGapProps): ReactNode {
return null;
}

HeaderGap.displayName = 'HeaderGap';

export default HeaderGap;
5 changes: 1 addition & 4 deletions src/components/HeaderGap/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React from 'react';
import {StyleProp, ViewStyle} from 'react-native';

type HeaderGapProps = {
styles?: StyleProp<ViewStyle>;
};

type HeaderGapComponent = React.FunctionComponent<HeaderGapProps>;

export default HeaderGapComponent;
export default HeaderGapProps;

0 comments on commit 47a827d

Please sign in to comment.