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 6, 2023
1 parent 4f5e306 commit e311ced
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/HeaderGap/index.desktop.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React, {memo} from 'react';
import {StyleProp, View, ViewStyle} from 'react-native';
import {View} from 'react-native';
import useThemeStyles from '@styles/useThemeStyles';
import HeaderGapProps from './types';

type HeaderGapProps = {
style: StyleProp<ViewStyle>;
};

function HeaderGap({style}: HeaderGapProps) {
function HeaderGap({styles}: HeaderGapProps) {
const themeStyles = useThemeStyles();
return <View style={[themeStyles.headerGap, style]} />;
return <View style={[themeStyles.headerGap, styles]} />;
}

HeaderGap.displayName = 'HeaderGap';

export default memo(HeaderGap);
File renamed without changes.
7 changes: 7 additions & 0 deletions src/components/HeaderGap/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import {StyleProp, ViewStyle} from 'react-native';

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

export default HeaderGapProps;

0 comments on commit e311ced

Please sign in to comment.