From ba6f10e8475316faa05d992e34fed495a7912e60 Mon Sep 17 00:00:00 2001 From: jungwoo3490 Date: Thu, 5 Jun 2025 02:56:32 +0900 Subject: [PATCH 1/2] fix DocsRating DOM error with browser translation --- website/core/DocsRating.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/core/DocsRating.tsx b/website/core/DocsRating.tsx index e78e1aca6a3..f9ab84f520a 100644 --- a/website/core/DocsRating.tsx +++ b/website/core/DocsRating.tsx @@ -5,8 +5,8 @@ * LICENSE file in the root directory of this source tree. */ -import React, {useState} from 'react'; import useIsBrowser from '@docusaurus/useIsBrowser'; +import {useState} from 'react'; const DocsRating = ({label}) => { const isBrowser = useIsBrowser(); @@ -33,7 +33,7 @@ const DocsRating = ({label}) => { {haveVoted ? ( 'Thanks for letting us know!' ) : ( - <> +
Is this page useful? { viewBox="0 0 81.13 89.76"> - +
)} ); From a61fc7f35dc33830833e52606a8129d387fc816b Mon Sep 17 00:00:00 2001 From: jungwoo3490 Date: Thu, 5 Jun 2025 03:32:41 +0900 Subject: [PATCH 2/2] revert unnecessary import order change --- website/core/DocsRating.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/core/DocsRating.tsx b/website/core/DocsRating.tsx index f9ab84f520a..08499e0378a 100644 --- a/website/core/DocsRating.tsx +++ b/website/core/DocsRating.tsx @@ -5,8 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +import React, {useState} from 'react'; import useIsBrowser from '@docusaurus/useIsBrowser'; -import {useState} from 'react'; const DocsRating = ({label}) => { const isBrowser = useIsBrowser();