From 10aeaa58dac776c2ecb03da3d057943957d662f2 Mon Sep 17 00:00:00 2001 From: Amit Roy Date: Wed, 7 Aug 2024 09:52:13 +0530 Subject: [PATCH] styles: design and Svg update --- src/app/page.tsx | 2 +- src/components/wrapper/dashboardWrapper.tsx | 18 ++++- src/utilities/svgConstant.tsx | 73 +++++++++++++++++++++ 3 files changed, 90 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index a511da5..4ef17d6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,5 +2,5 @@ import Image from "next/image"; import styles from "./page.module.scss"; export default function Home() { - return
fdhdhfh
; + return
Demo page
; } diff --git a/src/components/wrapper/dashboardWrapper.tsx b/src/components/wrapper/dashboardWrapper.tsx index 061ed6b..ba2f9f6 100644 --- a/src/components/wrapper/dashboardWrapper.tsx +++ b/src/components/wrapper/dashboardWrapper.tsx @@ -19,9 +19,23 @@ import Typography from "@mui/material/Typography"; import { useState } from "react"; import { UTILITY_CONSTANT } from "@/utilities/utilityConstant"; import styles from "./DashboardWrapper.module.scss"; +import styled from "@emotion/styled"; const drawerWidth = 260; +const CssList = styled(List)({ + width: "100%", + paddingBlock: "24px", + "& .MuiListItem-root": { + "& .MuiButtonBase-root": { + borderRadius: "15px", + "& .MuiListItemIcon-root": { + minWidth: "34px", + }, + }, + }, +}); + interface Props { window?: () => Window; children: React.ReactNode; @@ -58,7 +72,7 @@ export default function DashboardWrapper(props: Props) { /> {/* */} - + {["Project Table"].map((text, index) => ( @@ -69,7 +83,7 @@ export default function DashboardWrapper(props: Props) { ))} - + ); diff --git a/src/utilities/svgConstant.tsx b/src/utilities/svgConstant.tsx index 58e5d33..37732f9 100644 --- a/src/utilities/svgConstant.tsx +++ b/src/utilities/svgConstant.tsx @@ -1,4 +1,9 @@ import exp from "constants"; +import { JSX } from "react"; + +function createSvgIcon(arg0: JSX.Element, arg1: string) { + throw new Error("Function not implemented."); +} export const EYE_SLASH = () => { return ( @@ -15,3 +20,71 @@ export const EYE_SLASH = () => { ); }; + +export const BUILDING = createSvgIcon( + + + + + + + + + , + "Building" +);