Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed Feb 28, 2024
1 parent a58726e commit 0b501f6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/RoomDescriptionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import TextInput from '@components/TextInput';
import type {BaseTextInputRef} from '@components/TextInput/BaseTextInput/types';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import * as ReportUtils from '@libs/ReportUtils';
import updateMultilineInputRange from '@libs/updateMultilineInputRange';
import * as Report from '@userActions/Report';
Expand Down Expand Up @@ -68,10 +67,7 @@ function RoomDescriptionPage({report, policies}: RoomDescriptionPageProps) {
testID={RoomDescriptionPage.displayName}
>
<FullPageNotFoundView shouldShow={!ReportUtils.canEditReportDescription(report, policy)}>
<HeaderWithBackButton
title={translate('reportDescriptionPage.roomDescription')}
onBackButtonPress={() => Navigation.goBack()}
/>
<HeaderWithBackButton title={translate('reportDescriptionPage.roomDescription')} />
<FormProvider
style={[styles.flexGrow1, styles.ph5]}
formID={ONYXKEYS.FORMS.REPORT_DESCRIPTION_FORM}
Expand Down

0 comments on commit 0b501f6

Please sign in to comment.