Skip to content

Commit

Permalink
resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanDylann committed Jul 15, 2024
1 parent 31df927 commit d89894c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
9 changes: 0 additions & 9 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ type ReportScreenOnyxProps = {
/** The policies which the user has access to */
policies: OnyxCollection<OnyxTypes.Policy>;

/** Additional report details */
reportNameValuePairs: OnyxEntry<OnyxTypes.ReportNameValuePairs>;

/** The report metadata loading states */
reportMetadata: OnyxEntry<OnyxTypes.ReportMetadata>;
};
Expand Down Expand Up @@ -116,7 +113,6 @@ function getParentReportAction(parentReportActions: OnyxEntry<OnyxTypes.ReportAc
function ReportScreen({
betas = [],
route,
reportNameValuePairs,
reportMetadata = {
isLoadingInitialReportActions: true,
isLoadingOlderReportActions: false,
Expand Down Expand Up @@ -789,7 +785,6 @@ function ReportScreen({
onComposerBlur={() => setIsComposerFocus(false)}
report={report}
reportMetadata={reportMetadata}
reportNameValuePairs={reportNameValuePairs}
policy={policy}
pendingAction={reportPendingAction}
isComposerFullSize={!!isComposerFullSize}
Expand All @@ -815,10 +810,6 @@ export default withCurrentReportID(
isSidebarLoaded: {
key: ONYXKEYS.IS_SIDEBAR_LOADED,
},
reportNameValuePairs: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${getReportID(route)}`,
allowStaleData: true,
},
reportMetadata: {
key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT_METADATA}${getReportID(route)}`,
initialValue: {
Expand Down
5 changes: 1 addition & 4 deletions src/pages/home/report/ReportFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ type ReportFooterProps = {
/** Report metadata */
reportMetadata?: OnyxEntry<OnyxTypes.ReportMetadata>;

/** Additional report details */
reportNameValuePairs?: OnyxEntry<OnyxTypes.ReportNameValuePairs>;

/** The policy of the report */
policy: OnyxEntry<OnyxTypes.Policy>;

Expand Down Expand Up @@ -69,7 +66,6 @@ function ReportFooter({
pendingAction,
report = {reportID: '-1'},
reportMetadata,
reportNameValuePairs,
policy,
isEmptyChat = true,
isReportReadyForDisplay = true,
Expand Down Expand Up @@ -98,6 +94,7 @@ function ReportFooter({
}
},
});
const [reportNameValuePairs] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_NAME_VALUE_PAIRS}${report?.reportID ?? -1}`);

const chatFooterStyles = {...styles.chatFooter, minHeight: !isOffline ? CONST.CHAT_FOOTER_MIN_HEIGHT : 0};
const isArchivedRoom = ReportUtils.isArchivedRoom(report, reportNameValuePairs);
Expand Down

0 comments on commit d89894c

Please sign in to comment.