diff --git a/src/Components/Dashboard/Dashboard.js b/src/Components/Dashboard/Dashboard.js index afcdd50..6c5255b 100644 --- a/src/Components/Dashboard/Dashboard.js +++ b/src/Components/Dashboard/Dashboard.js @@ -1,6 +1,6 @@ import React, { useState, useContext, useEffect, useRef } from "react"; import { CaseCard } from "../../pageElements/Cards.js"; -import { Link, useNavigate } from "react-router-dom"; +import { Link, useNavigate, createSearchParams } from "react-router-dom"; import MobileContent from "../MobileContent"; import { ArrowRight, @@ -106,6 +106,20 @@ const Dashboard = () => { return null; } + function handleClick(e) { + e.preventDefault(); + console.log("handle lcick"); + //searchParams.set("mode", mode); + //setSearchParams(searchParams); + //navigate(`/passwordreset/?mode=enterEmail`); + navigate({ + pathname: "/passwordreset/", + search: `?${createSearchParams({ + mode: "enterEmail", + })}`, + }); + } + const DesktopContent = () => { return allCases !== null ? (
@@ -188,18 +202,25 @@ const Dashboard = () => {
- Welcome to Novodraft, attorney {group.lastName}. We are - excited to introduce you to our application. Review the - step-by-step user guide by clicking "How-to" in the navigation - bar. -
-
- Your login is{" "} - {`username: ${group.email} - with a temporary password: ${group.tpe}.`} -
- You should change your password now{" "} - by clicking here. -
+

+ Welcome to Novodraft, attorney {group.lastName}. We are + excited to introduce you to our application. Review the + step-by-step user guide by clicking "How-to" in the + navigation bar. +

+

+ {" "} +

+ Your login is{" "} + {`username: ${group.email} - with a temporary password: ${group.tpe}.`} +
+

+

+ You should change your password now by{" "} + + clicking here + +

diff --git a/src/styles/dashboard.scss b/src/styles/dashboard.scss index ff05662..16947bd 100644 --- a/src/styles/dashboard.scss +++ b/src/styles/dashboard.scss @@ -45,6 +45,10 @@ flex-wrap: wrap; } } +.dash-clicknow-span { + cursor: pointer; + color: blue; +} .dash-heading-text { font-size: 1.3rem;