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 && }