From ecd4a2588f6e294e449dfa0dd20aac8ccdf3dada Mon Sep 17 00:00:00 2001 From: Abhinav Date: Mon, 24 Jan 2022 17:26:54 +0530 Subject: [PATCH] export string to constant --- src/components/pages/sharedAlbum/AbuseReportForm.tsx | 2 +- src/utils/strings/englishConstants.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/pages/sharedAlbum/AbuseReportForm.tsx b/src/components/pages/sharedAlbum/AbuseReportForm.tsx index 9e5de75cb..8537ea16c 100644 --- a/src/components/pages/sharedAlbum/AbuseReportForm.tsx +++ b/src/components/pages/sharedAlbum/AbuseReportForm.tsx @@ -58,7 +58,7 @@ export function AbuseReportForm({ show, close, url }: Iprops) { show={show} onHide={close} attributes={{ - title: 'abuse report', + title: constants.ABUSE_REPORT, staticBackdrop: true, }}>
diff --git a/src/utils/strings/englishConstants.tsx b/src/utils/strings/englishConstants.tsx index 160855b3a..ca3a42e27 100644 --- a/src/utils/strings/englishConstants.tsx +++ b/src/utils/strings/englishConstants.tsx @@ -643,6 +643,7 @@ const englishConstants = { DISABLE_PUBLIC_SHARING: "'disable public sharing", DISABLE_PUBLIC_SHARING_MESSAGE: 'are you sure you want to disable public sharing?', + ABUSE_REPORT: "'abuse report'", }; export default englishConstants;