Skip to content

Commit

Permalink
migrate HeaderGap to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Dec 5, 2023
1 parent 8d934ae commit 4f5e306
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/components/HeaderGap/index.desktop.js

This file was deleted.

15 changes: 15 additions & 0 deletions src/components/HeaderGap/index.desktop.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React, {memo} from 'react';
import {StyleProp, View, ViewStyle} from 'react-native';
import useThemeStyles from '@styles/useThemeStyles';

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

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

HeaderGap.displayName = 'HeaderGap';
export default memo(HeaderGap);

0 comments on commit 4f5e306

Please sign in to comment.