From 689d1b50325c96aa9bf796b69084042db3ccfe0b Mon Sep 17 00:00:00 2001 From: Philipp Meier Date: Fri, 5 Jul 2024 21:34:07 +0200 Subject: [PATCH] fix: Fixed flickering in the dark mode. --- .../ClientApp/src/Features/Notes/NoteEditControl.tsx | 4 ++-- src/Chrono/ClientApp/src/Features/Notes/NotePage.tsx | 7 ++++--- .../src/Features/TaskLists/TaskItemViewControl.tsx | 7 ++++--- .../src/Features/TaskLists/TaskListEditControl.tsx | 5 +++-- .../ClientApp/src/Features/Tasks/TaskEditControl.tsx | 4 ++-- .../ClientApp/src/Shared/Components/NoItemsMessage.tsx | 5 +++-- 6 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/Chrono/ClientApp/src/Features/Notes/NoteEditControl.tsx b/src/Chrono/ClientApp/src/Features/Notes/NoteEditControl.tsx index 3009ef9..e4861da 100644 --- a/src/Chrono/ClientApp/src/Features/Notes/NoteEditControl.tsx +++ b/src/Chrono/ClientApp/src/Features/Notes/NoteEditControl.tsx @@ -1,5 +1,5 @@ import {useEffect, useState} from "react"; -import {useNavigate} from "react-router-dom"; +import {Link, useNavigate} from "react-router-dom"; import {Button, Confirm, Container, Dropdown, Form, Icon, Input} from "semantic-ui-react"; import {Note} from "../../Entities/Note"; @@ -146,7 +146,7 @@ const NoteEditControl = (props: { - diff --git a/src/Chrono/ClientApp/src/Features/Notes/NotePage.tsx b/src/Chrono/ClientApp/src/Features/Notes/NotePage.tsx index 34438a6..4d183a6 100644 --- a/src/Chrono/ClientApp/src/Features/Notes/NotePage.tsx +++ b/src/Chrono/ClientApp/src/Features/Notes/NotePage.tsx @@ -3,6 +3,7 @@ import {useEffect, useState} from "react"; import {Button, Card, Container, Icon} from "semantic-ui-react"; import {useMediaQuery} from "react-responsive"; import {GetMyNotesResponse, NotePreview} from "../../Entities/Note"; +import {Link} from "react-router-dom"; // Shared import NoItemsMessage from "../../Shared/Components/NoItemsMessage"; @@ -52,7 +53,7 @@ const NotePage = () => { - {n.title} + {n.title} togglePinned(n)}/> @@ -74,8 +75,8 @@ const NotePage = () => { >
diff --git a/src/Chrono/ClientApp/src/Shared/Components/NoItemsMessage.tsx b/src/Chrono/ClientApp/src/Shared/Components/NoItemsMessage.tsx index 0a642fd..e74791f 100644 --- a/src/Chrono/ClientApp/src/Shared/Components/NoItemsMessage.tsx +++ b/src/Chrono/ClientApp/src/Shared/Components/NoItemsMessage.tsx @@ -1,4 +1,5 @@ import {Button, Header, Icon, Segment} from "semantic-ui-react"; +import {Link} from "react-router-dom"; type NoItemsMessageButton = { text: string; @@ -18,8 +19,8 @@ const NoItemsMessage = (props: { {props.buttonOptions && }