From 6b7183b325837df1197d488255a7284e9360e432 Mon Sep 17 00:00:00 2001 From: Joe Gambino Date: Wed, 12 Aug 2020 12:34:21 -0700 Subject: [PATCH] Remove ActivityIndicator from optimistically added comments --- src/lib/actions/ActionsReport.js | 3 --- src/page/HomePage/Report/ReportHistoryCompose.js | 2 +- src/page/HomePage/Report/ReportHistoryItem.js | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib/actions/ActionsReport.js b/src/lib/actions/ActionsReport.js index cd69aaa382fa3..d8ac78a9e22de 100644 --- a/src/lib/actions/ActionsReport.js +++ b/src/lib/actions/ActionsReport.js @@ -4,7 +4,6 @@ import Ion from '../Ion'; import {request, delayedWrite} from '../Network'; import IONKEYS from '../../IONKEYS'; import ExpensiMark from '../ExpensiMark'; -import Guid from '../Guid'; import CONFIG from '../../CONFIG'; import * as pusher from '../Pusher/pusher'; @@ -199,7 +198,6 @@ function fetchHistory(reportID) { */ function addHistoryItem(reportID, reportComment) { const messageParser = new ExpensiMark(); - const guid = Guid(); const historyKey = `${IONKEYS.REPORT_HISTORY}_${reportID}`; return Ion.multiGet([historyKey, IONKEYS.SESSION, IONKEYS.PERSONAL_DETAILS]) @@ -218,7 +216,6 @@ function addHistoryItem(reportID, reportComment) { return Ion.set(historyKey, [ ...reportHistory, { - tempGuid: guid, actionName: 'ADDCOMMENT', actorEmail: Ion.get(IONKEYS.SESSION, 'email'), person: [ diff --git a/src/page/HomePage/Report/ReportHistoryCompose.js b/src/page/HomePage/Report/ReportHistoryCompose.js index 8e51c78069d6e..b675714d43243 100644 --- a/src/page/HomePage/Report/ReportHistoryCompose.js +++ b/src/page/HomePage/Report/ReportHistoryCompose.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import {View, TextInput, Button} from 'react-native'; +import {View, TextInput} from 'react-native'; import styles from '../../../style/StyleSheet'; const propTypes = { diff --git a/src/page/HomePage/Report/ReportHistoryItem.js b/src/page/HomePage/Report/ReportHistoryItem.js index fd45f2d15bac0..2ffce14d35f46 100644 --- a/src/page/HomePage/Report/ReportHistoryItem.js +++ b/src/page/HomePage/Report/ReportHistoryItem.js @@ -1,5 +1,5 @@ import React from 'react'; -import {ActivityIndicator, View} from 'react-native'; +import {View} from 'react-native'; import PropTypes from 'prop-types'; import ReportHistoryItemSingle from './ReportHistoryItemSingle'; import ReportHistoryPropsTypes from './ReportHistoryPropsTypes'; @@ -17,7 +17,6 @@ const ReportHistoryItem = ({displayAsGroup, historyItem}) => ( {!displayAsGroup && } {displayAsGroup && } - {historyItem.tempGuid && } ); ReportHistoryItem.propTypes = propTypes;