Skip to content

Commit 8d63e87

Browse files
authored
Chore: disable homepage modal rendering (#984)
1 parent e8004ea commit 8d63e87

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pages/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ const HomePage = (props: IHomePage) => {
294294
const isLoading = searchState === SearchStateName.LOADING;
295295
const isError = searchState === SearchStateName.ERROR;
296296
const [isModalOpen, setIsModalOpen] = useState(false);
297+
const SHOW_HOMEPAGE_MODAL = false;
297298

298299
useEffect(() => {
299300
if (typeof window === 'undefined') return;
@@ -342,7 +343,9 @@ const HomePage = (props: IHomePage) => {
342343
)}
343344
</Content>
344345
</PageSection>
346+
{SHOW_HOMEPAGE_MODAL ? (
345347
<MyModal isOpen={isModalOpen} onClose={() => setIsModalOpen(false)} />
348+
) : <></>}
346349
<WrapperResult>
347350
{(isLoaded || isLoading) && (
348351
<SearchResultsHeader

0 commit comments

Comments
 (0)