From a9777a6a3b87ab73d59c6e9b28c6feb9674003f7 Mon Sep 17 00:00:00 2001 From: Tim Chamberlain Date: Wed, 13 Jul 2022 13:34:06 -0500 Subject: [PATCH] QQQ-30: fixes for demo --- .eslintrc.json | 1 + src/App.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 59415fb..2684097 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -55,6 +55,7 @@ ], "max-len": "off", "no-console": "off", + "no-constant-condition": "off", "no-shadow": "off", "no-unused-vars": "off", "no-plusplus": "off", diff --git a/src/App.tsx b/src/App.tsx index 03ee387..132755c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -36,13 +36,13 @@ import { useMaterialUIController, setMiniSidenav, setOpenConfigurator } from "co import nfLogo from "assets/images/nutrifresh_one_icon_white.png"; import brandWhite from "assets/images/logo-ct.png"; import brandDark from "assets/images/logo-ct-dark.png"; +import { Md5 } from "ts-md5/dist/md5"; import EntityCreate from "./qqq/pages/entity-create"; import EntityList from "./qqq/pages/entity-list"; import EntityView from "./qqq/pages/entity-view"; import EntityEdit from "./qqq/pages/entity-edit"; import ProcessRun from "./qqq/pages/process-run"; import MDAvatar from "./components/MDAvatar"; -import profilePicture from "./assets/images/team-3.jpg"; import ProfileOverview from "./layouts/pages/profile/profile-overview"; import Settings from "./layouts/pages/account/settings"; import SignInBasic from "./layouts/authentication/sign-in/basic"; @@ -50,6 +50,10 @@ import Analytics from "./layouts/dashboards/analytics"; import Sales from "./layouts/dashboards/sales"; import QClient from "./qqq/utils/QClient"; +const gravatarBase = "http://www.gravatar.com/avatar/"; +const hash = Md5.hashStr("tim@nutrifreshservices.com"); +const profilePicture = `${gravatarBase}${hash}`; + /////////////////////////////////////////////////////////////////////////////////////////////// // define the parts of the nav that are static - before the qqq tables etc get dynamic added // /////////////////////////////////////////////////////////////////////////////////////////////// @@ -58,8 +62,8 @@ function getStaticRoutes() return [ { type: "collapse", - name: "Brooklyn Alice", - key: "brooklyn-alice", + name: "Tim Chamberlain", + key: "tim-chamberlain", icon: , collapse: [ {