Skip to content

Commit

Permalink
Merge pull request #32192 from callstack-internal/pac-guerreiro/refac…
Browse files Browse the repository at this point in the history
…tor/migrate-reportactionitemgrouped-to-typescript

[TS migration] Migrate 'ReportActionItemGrouped.js' component to TypeScript
  • Loading branch information
youssef-lr authored Dec 12, 2023
2 parents 776849a + be21279 commit bc121d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/pages/home/report/ReportActionItemGrouped.js

This file was deleted.

22 changes: 22 additions & 0 deletions src/pages/home/report/ReportActionItemGrouped.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
import {StyleProp, View, ViewStyle} from 'react-native';
import useThemeStyles from '@styles/useThemeStyles';
import ChildrenProps from '@src/types/utils/ChildrenProps';

type ReportActionItemGroupedProps = ChildrenProps & {
/** Styles for the outermost View */
wrapperStyle?: StyleProp<ViewStyle>;
};

function ReportActionItemGrouped({wrapperStyle, children}: ReportActionItemGroupedProps) {
const styles = useThemeStyles();
return (
<View style={[styles.chatItem, wrapperStyle]}>
<View style={styles.chatItemRightGrouped}>{children}</View>
</View>
);
}

ReportActionItemGrouped.displayName = 'ReportActionItemGrouped';

export default ReportActionItemGrouped;

0 comments on commit bc121d7

Please sign in to comment.