From 88ddccfc6b5e8e4de3f3a618d4048d049ece5e66 Mon Sep 17 00:00:00 2001 From: RaenonX Date: Wed, 28 Oct 2020 11:10:23 -0500 Subject: [PATCH] FIX - post form edit default value was not working Signed-off-by: RaenonX --- package-lock.json | 6 +++--- package.json | 2 +- src/components/elements/questPostForm.tsx | 7 +++---- src/index.tsx | 4 +++- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 103bda5f..0c0c0e0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13216,9 +13216,9 @@ } }, "react": { - "version": "17.0.0", - "resolved": "https://registry.npmjs.org/react/-/react-17.0.0.tgz", - "integrity": "sha512-rG9bqS3LMuetoSUKHN8G3fMNuQOePKDThK6+2yXFWtoeTDLVNh/QCaxT+Jr+rNf4lwNXpx+atdn3Aa0oi8/6eQ==", + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/react/-/react-17.0.1.tgz", + "integrity": "sha512-lG9c9UuMHdcAexXtigOZLX8exLWkW0Ku29qPRU8uhF2R9BN96dLCt0psvzPLlHc5OWkgymP3qwTRgbnw5BKx3w==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" diff --git a/package.json b/package.json index 617789d3..275c85e1 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "i18next": "^19.8.2", "i18next-browser-languagedetector": "^6.0.1", "i18next-http-backend": "^1.0.21", - "react": "^17.0.0", + "react": "^17.0.1", "react-bootstrap": "^1.3.0", "react-dom": "^17.0.0", "react-ga": "^3.2.0", diff --git a/src/components/elements/questPostForm.tsx b/src/components/elements/questPostForm.tsx index 912ce8c6..c13b8e48 100644 --- a/src/components/elements/questPostForm.tsx +++ b/src/components/elements/questPostForm.tsx @@ -106,7 +106,6 @@ export const QuestPostForm = ({post, handleSubmit}: QuestPostFormProps) => { .then((data) => setAvailability(data.available)) .catch(() => setAvailability(false)); }; - // endregion // region Sections @@ -132,7 +131,7 @@ export const QuestPostForm = ({post, handleSubmit}: QuestPostFormProps) => { { SUPPORTED_LANG.map((lang) => { @@ -146,11 +145,11 @@ export const QuestPostForm = ({post, handleSubmit}: QuestPostFormProps) => { const sectionGeneralInfo = ( <> - +
{t('posts.quest.general')}
- +
{t('posts.quest.video')}
diff --git a/src/index.tsx b/src/index.tsx index 8a6823c4..cd5276c9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,7 +14,9 @@ import './bootstrap.css'; import './i18n'; // Initialize Google Analytics -ReactGA.initialize('G-796E69CFJG'); // FIXME: Currently ReactGA seems not working +// https://www.npmjs.com/package/react-ga#upgrading-from-1x-to-2x +// ReactGA.initialize('G-796E69CFJG', {debug: true}); // FIXME: Currently ReactGA seems not working +ReactGA.initialize('G-796E69CFJG'); ReactDOM.render(