forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Expensify#32560 from VickyStash/ts-migration/repor…
…tActionItemTaskAction-component [TS migration] Migrate 'ReportActionItemTaskAction.js' component to TypeScript
- Loading branch information
Showing
3 changed files
with
25 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import {View} from 'react-native'; | ||
import Text from '@components/Text'; | ||
import useThemeStyles from '@hooks/useThemeStyles'; | ||
import * as TaskUtils from '@libs/TaskUtils'; | ||
|
||
type TaskActionProps = { | ||
/** Name of the reportAction action */ | ||
actionName: string; | ||
}; | ||
|
||
function TaskAction({actionName}: TaskActionProps) { | ||
const styles = useThemeStyles(); | ||
|
||
return ( | ||
<View style={[styles.flex1, styles.flexRow, styles.alignItemsCenter]}> | ||
<Text style={[styles.chatItemMessage, styles.colorMuted]}>{TaskUtils.getTaskReportActionMessage(actionName)}</Text> | ||
</View> | ||
); | ||
} | ||
|
||
TaskAction.displayName = 'TaskAction'; | ||
|
||
export default TaskAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters