From 217b42d76a59f3de575b90762d95bd83f719455a Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 29 Oct 2023 21:45:24 +0100 Subject: [PATCH] fix(newPage): replace show if with inline condition Signed-off-by: Philip Molares --- frontend/src/app/(editor)/new/page.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/app/(editor)/new/page.tsx b/frontend/src/app/(editor)/new/page.tsx index 474e4db1d..579fbb323 100644 --- a/frontend/src/app/(editor)/new/page.tsx +++ b/frontend/src/app/(editor)/new/page.tsx @@ -6,11 +6,9 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import { createNote } from '../../../api/notes' -import type { Note } from '../../../api/notes/types' import { LoadingScreen } from '../../../components/application-loader/loading-screen/loading-screen' import { CustomAsyncLoadingBoundary } from '../../../components/common/async-loading-boundary/custom-async-loading-boundary' import { Redirect } from '../../../components/common/redirect' -import { ShowIf } from '../../../components/common/show-if/show-if' import { CommonErrorPage } from '../../../components/error-pages/common-error-page' import { useSingleStringUrlParameter } from '../../../hooks/common/use-single-string-url-parameter' import type { NextPage } from 'next' @@ -38,9 +36,7 @@ const NewNotePage: NextPage = () => { descriptionI18nKey={'errors.noteCreationFailed.description'} /> }> - - - + {value !== undefined && } ) }