fix comments
This commit is contained in:
parent
c76099dd3d
commit
ae967a7e2d
@ -1,6 +1,4 @@
|
|||||||
/* PageLinks.scss */
|
.page-link__container {
|
||||||
|
|
||||||
.link-container {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 12px 1px;
|
padding: 12px 1px;
|
||||||
@ -14,10 +12,9 @@
|
|||||||
background-color: var(--hover-color);
|
background-color: var(--hover-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
.page-link__text {
|
||||||
|
|
||||||
.link-text {
|
|
||||||
color: var(--text-tertiary);
|
color: var(--text-tertiary);
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -15,10 +15,10 @@ export default function PageLinks({
|
|||||||
icon: Icon,
|
icon: Icon,
|
||||||
}: IPageLinksProps) {
|
}: IPageLinksProps) {
|
||||||
return (
|
return (
|
||||||
<Link href={path} passHref legacyBehavior>
|
<Link href={path} passHref legacyBehavior className="page-link">
|
||||||
<a className={clsx("link-container")}>
|
<a className={clsx("page-link__container")}>
|
||||||
{Icon && <Icon />}
|
{Icon && <Icon />}
|
||||||
<span className="link-text">{title}</span>
|
<span className="page-link__text">{title}</span>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.account-iq-wrapper {
|
.account-iq {
|
||||||
.icon {
|
.account-iq__icon {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #4ecdc4;
|
color: #4ecdc4;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
|||||||
@ -4,10 +4,10 @@ import "./AccountIQ.scss";
|
|||||||
|
|
||||||
export const AccountIQ = () => {
|
export const AccountIQ = () => {
|
||||||
return (
|
return (
|
||||||
<Box className="account-iq-wrapper">
|
<Box className="account-iq">
|
||||||
<SectionCard
|
<SectionCard
|
||||||
title="AccountIQ"
|
title="AccountIQ"
|
||||||
icon={<div className="icon">AIQ</div>}
|
icon={<div className="account-iq__icon">AIQ</div>}
|
||||||
items={[
|
items={[
|
||||||
{ title: "Automatically reconcile your transactions" },
|
{ title: "Automatically reconcile your transactions" },
|
||||||
{ title: "Live wallet balances from providers" },
|
{ title: "Live wallet balances from providers" },
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.date-range-picker-wrapper {
|
.date-range-picker {
|
||||||
.date-typo {
|
.date-range-picker__date-typo {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export const DateRangePicker = () => {
|
|||||||
const id = open ? "date-range-popover" : undefined;
|
const id = open ? "date-range-popover" : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box className="date-range-picker-wrapper">
|
<Box className="date-range-picker">
|
||||||
<Popover
|
<Popover
|
||||||
id={id}
|
id={id}
|
||||||
open={open}
|
open={open}
|
||||||
@ -66,7 +66,10 @@ export const DateRangePicker = () => {
|
|||||||
</Popover>
|
</Popover>
|
||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
<Typography onClick={handleClick} className="date-typo">
|
<Typography
|
||||||
|
onClick={handleClick}
|
||||||
|
className="date-range-picker__date-typo"
|
||||||
|
>
|
||||||
{format(range[0].startDate ?? new Date(), "PPP")} -{" "}
|
{format(range[0].startDate ?? new Date(), "PPP")} -{" "}
|
||||||
{format(range[0].endDate ?? new Date(), "PPP")}
|
{format(range[0].endDate ?? new Date(), "PPP")}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.documentation-wrapper {
|
.documentation {
|
||||||
.icon {
|
.documentation__icon {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,10 +6,12 @@ import "./Documentation.scss";
|
|||||||
|
|
||||||
export const Documentation = () => {
|
export const Documentation = () => {
|
||||||
return (
|
return (
|
||||||
<Box className="documentation-wrapper">
|
<Box className="documentation">
|
||||||
<SectionCard
|
<SectionCard
|
||||||
title="Documentation"
|
title="Documentation"
|
||||||
icon={<DescriptionIcon className="icon" fontSize="small" />}
|
icon={
|
||||||
|
<DescriptionIcon className="documentation__icon" fontSize="small" />
|
||||||
|
}
|
||||||
items={[
|
items={[
|
||||||
{ title: "Provider Integration Overview" },
|
{ title: "Provider Integration Overview" },
|
||||||
{ title: "APIs Introduction" },
|
{ title: "APIs Introduction" },
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
.fetch-report-paper {
|
.fetch-report {
|
||||||
padding: 23px;
|
padding: 23px;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export const FetchReport = () => {
|
|||||||
const isDownloadEnabled = state && psp && reportType;
|
const isDownloadEnabled = state && psp && reportType;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Paper className="fetch-report-paper" elevation={3}>
|
<Paper className="fetch-report" elevation={3}>
|
||||||
<Box sx={{ display: "flex", justifyContent: "space-between", mb: 2 }}>
|
<Box sx={{ display: "flex", justifyContent: "space-between", mb: 2 }}>
|
||||||
<Typography variant="h6" fontWeight="bold">
|
<Typography variant="h6" fontWeight="bold">
|
||||||
Fetch Report
|
Fetch Report
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
.general-health-card-wrapper {
|
.general-health-card {
|
||||||
.header {
|
.general-health-card__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
.right-side {
|
.general-health-card__right-side {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stat-items {
|
.general-health-card__stat-items {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
|
|||||||
@ -16,13 +16,13 @@ const stats = [
|
|||||||
|
|
||||||
export const GeneralHealthCard = () => {
|
export const GeneralHealthCard = () => {
|
||||||
return (
|
return (
|
||||||
<Card className="general-health-card-wrapper">
|
<Card className="general-health-card">
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Box className="header">
|
<Box className="general-health-card__header">
|
||||||
<Typography variant="h5" fontWeight="bold">
|
<Typography variant="h5" fontWeight="bold">
|
||||||
General Health
|
General Health
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box className="right-side">
|
<Box className="general-health-card__right-side">
|
||||||
<CalendarTodayIcon fontSize="small" />
|
<CalendarTodayIcon fontSize="small" />
|
||||||
<Typography variant="body2">
|
<Typography variant="body2">
|
||||||
<DateRangePicker />
|
<DateRangePicker />
|
||||||
@ -32,7 +32,7 @@ export const GeneralHealthCard = () => {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
<Box className="stat-items">
|
<Box className="general-health-card__stat-items">
|
||||||
{stats.map((item, i) => (
|
{stats.map((item, i) => (
|
||||||
<StatItem key={item.label + i} {...item} />
|
<StatItem key={item.label + i} {...item} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
.static-item-wrapper {
|
.static-item {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
|
|
||||||
.percentage {
|
.static-item__percentage {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@ -11,14 +11,14 @@ export const StatItem = ({
|
|||||||
value: string | number;
|
value: string | number;
|
||||||
change: string;
|
change: string;
|
||||||
}) => (
|
}) => (
|
||||||
<Box className="static-item-wrapper">
|
<Box className="static-item">
|
||||||
<Typography variant="body2" fontWeight="bold" color="text.secondary">
|
<Typography variant="body2" fontWeight="bold" color="text.secondary">
|
||||||
{label}
|
{label}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="h6" fontWeight="bold" mt={0.5}>
|
<Typography variant="h6" fontWeight="bold" mt={0.5}>
|
||||||
{value}
|
{value}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box className="percentage">
|
<Box className="static-item__percentage">
|
||||||
<ArrowDropDownIcon fontSize="small" />
|
<ArrowDropDownIcon fontSize="small" />
|
||||||
{/* <ArrowDropUp fontSize='small' /> */}
|
{/* <ArrowDropUp fontSize='small' /> */}
|
||||||
<Typography variant="caption">{change}</Typography>
|
<Typography variant="caption">{change}</Typography>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
.pie-charts-wrapper {
|
.pie-charts {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ const renderCustomizedLabel = ({
|
|||||||
};
|
};
|
||||||
export const PieCharts = () => {
|
export const PieCharts = () => {
|
||||||
return (
|
return (
|
||||||
<Box className="pie-charts-wrapper">
|
<Box className="pie-charts">
|
||||||
<ResponsiveContainer width="100%" height="100%">
|
<ResponsiveContainer width="100%" height="100%">
|
||||||
<PieChart>
|
<PieChart>
|
||||||
<Pie
|
<Pie
|
||||||
|
|||||||
@ -1,17 +1,17 @@
|
|||||||
.section-card-paper {
|
.section-card {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.header {
|
.section-card__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
.title {
|
.section-card__title {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
.icon-wrapper {
|
.section-card__icon-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
|||||||
@ -16,16 +16,16 @@ import { ISectionCardProps } from "./types";
|
|||||||
import "./SectionCard.scss";
|
import "./SectionCard.scss";
|
||||||
|
|
||||||
export const SectionCard = ({ title, icon, items }: ISectionCardProps) => (
|
export const SectionCard = ({ title, icon, items }: ISectionCardProps) => (
|
||||||
<Paper className="section-card-paper" elevation={3}>
|
<Paper className="section-card" elevation={3}>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Box className="header">
|
<Box className="section-card__header">
|
||||||
<Box className="title">
|
<Box className="section-card__title">
|
||||||
{icon}
|
{icon}
|
||||||
<Typography variant="h6" fontWeight="bold">
|
<Typography variant="h6" fontWeight="bold">
|
||||||
{title}
|
{title}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Box className="icon-wrapper">
|
<Box className="section-card__icon-wrapper">
|
||||||
<IconButton size="small">
|
<IconButton size="small">
|
||||||
<MoreVertIcon fontSize="small" />
|
<MoreVertIcon fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
.transaction-overview-paper {
|
.transaction-overview {
|
||||||
padding: 23px;
|
padding: 23px;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
.header {
|
.transaction-overview__header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -12,7 +12,7 @@
|
|||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chart-table-wrapper {
|
.transaction-overview__chart-table {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.transactions-overview-table-wrapper {
|
.transactions-overview-table {
|
||||||
.state-wrapper {
|
.transactions-overview-table__state-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -7,7 +7,7 @@
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
width: 73px;
|
width: 73px;
|
||||||
|
|
||||||
.state {
|
.transactions-overview-table__state {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|||||||
@ -21,10 +21,7 @@ const data1 = [
|
|||||||
|
|
||||||
export const TransactionsOverViewTable = () => {
|
export const TransactionsOverViewTable = () => {
|
||||||
return (
|
return (
|
||||||
<TableContainer
|
<TableContainer className="transactions-overview-table" component={Paper}>
|
||||||
className="transactions-overview-table-wrapper"
|
|
||||||
component={Paper}
|
|
||||||
>
|
|
||||||
<Table>
|
<Table>
|
||||||
<TableHead>
|
<TableHead>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
@ -38,9 +35,9 @@ export const TransactionsOverViewTable = () => {
|
|||||||
{data1.map((row, i) => (
|
{data1.map((row, i) => (
|
||||||
<TableRow key={row.state + i}>
|
<TableRow key={row.state + i}>
|
||||||
<TableCell align="center">
|
<TableCell align="center">
|
||||||
<Box className="state-wrapper">
|
<Box className="transactions-overview-table__state-wrapper">
|
||||||
<Box
|
<Box
|
||||||
className="state"
|
className="transactions-overview-table__state"
|
||||||
sx={{
|
sx={{
|
||||||
bgcolor: row.color,
|
bgcolor: row.color,
|
||||||
}}
|
}}
|
||||||
|
|||||||
@ -10,9 +10,9 @@ import "./TransactionsOverView.scss";
|
|||||||
export const TransactionsOverView = () => {
|
export const TransactionsOverView = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
return (
|
return (
|
||||||
<Paper className="transaction-overview-paper" elevation={3}>
|
<Paper className="transaction-overview" elevation={3}>
|
||||||
{/* Title and All Transactions Button */}
|
{/* Title and All Transactions Button */}
|
||||||
<Box className="header">
|
<Box className="transaction-overview__header">
|
||||||
<Typography variant="h5" fontWeight="bold">
|
<Typography variant="h5" fontWeight="bold">
|
||||||
Transactions Overview (Last 24h)
|
Transactions Overview (Last 24h)
|
||||||
</Typography>
|
</Typography>
|
||||||
@ -31,7 +31,7 @@ export const TransactionsOverView = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Chart and Table */}
|
{/* Chart and Table */}
|
||||||
<Box className="chart-table-wrapper">
|
<Box className="transaction-overview__chart-table">
|
||||||
<PieCharts />
|
<PieCharts />
|
||||||
<TransactionsOverViewTable />
|
<TransactionsOverViewTable />
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
.transactions-waiting-approval-paper {
|
.transactions-waiting-approval {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@ -118,11 +118,7 @@ const transactions = [
|
|||||||
|
|
||||||
export const TransactionsWaitingApproval = () => {
|
export const TransactionsWaitingApproval = () => {
|
||||||
return (
|
return (
|
||||||
<Paper
|
<Paper elevation={3} className="transactions-waiting-approval">
|
||||||
elevation={3}
|
|
||||||
className="transactions-waiting-approval-paper"
|
|
||||||
// sx={{ padding: 2, margin: 2, display: "flex", flexDirection: "column" }}
|
|
||||||
>
|
|
||||||
<Box sx={{ p: 3 }}>
|
<Box sx={{ p: 3 }}>
|
||||||
<Box sx={{ display: "flex", justifyContent: "space-between", mb: 2 }}>
|
<Box sx={{ display: "flex", justifyContent: "space-between", mb: 2 }}>
|
||||||
<Typography variant="h5" fontWeight="bold">
|
<Typography variant="h5" fontWeight="bold">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
.whats-new-wrapper {
|
.whats-new {
|
||||||
.icon {
|
.whats-new__wifi-icon {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import "./WhatsNew.scss";
|
|||||||
|
|
||||||
export const WhatsNew = () => {
|
export const WhatsNew = () => {
|
||||||
return (
|
return (
|
||||||
<Box className="whats-new-wrapper">
|
<Box className="whats-new">
|
||||||
<SectionCard
|
<SectionCard
|
||||||
title="What’s New"
|
title="What’s New"
|
||||||
icon={<WifiIcon className="icon" fontSize="small" />}
|
icon={<WifiIcon className="whats-new__wifi-icon" fontSize="small" />}
|
||||||
items={[
|
items={[
|
||||||
{
|
{
|
||||||
title: "Sneak Peek – Discover the New Rules Hub Feature",
|
title: "Sneak Peek – Discover the New Rules Hub Feature",
|
||||||
|
|||||||
@ -1,17 +1,19 @@
|
|||||||
.header-toolbar {
|
.header {
|
||||||
|
.header__toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.left-group {
|
.header__left-group {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px; // optional spacing between menu and dropdown
|
gap: 12px; // optional spacing between menu and dropdown
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-group {
|
.header__right-group {
|
||||||
margin-left: auto; // pushes it to the far right
|
margin-left: auto; // pushes it to the far right
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { AppBar, Toolbar, IconButton, Menu, MenuItem } from "@mui/material";
|
import { AppBar, Toolbar, IconButton } from "@mui/material";
|
||||||
import MenuIcon from "@mui/icons-material/Menu";
|
import MenuIcon from "@mui/icons-material/Menu";
|
||||||
import Dropdown from "./dropDown/DropDown";
|
import Dropdown from "./dropDown/DropDown";
|
||||||
import AccountMenu from "./accountMenu/AccountMenu";
|
import AccountMenu from "./accountMenu/AccountMenu";
|
||||||
@ -22,20 +22,21 @@ const Header = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<AppBar
|
<AppBar
|
||||||
|
className="header"
|
||||||
position="sticky"
|
position="sticky"
|
||||||
color="transparent"
|
color="transparent"
|
||||||
elevation={0}
|
elevation={0}
|
||||||
sx={{ borderBottom: "1px solid #22242626" }}
|
sx={{ borderBottom: "1px solid #22242626" }}
|
||||||
>
|
>
|
||||||
<Toolbar className="header-toolbar">
|
<Toolbar className="header__toolbar">
|
||||||
<div className="left-group">
|
<div className="header__left-group">
|
||||||
<IconButton edge="start" color="inherit" aria-label="menu">
|
<IconButton edge="start" color="inherit" aria-label="menu">
|
||||||
<MenuIcon />
|
<MenuIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<Dropdown onChange={handleChange} />
|
<Dropdown onChange={handleChange} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="right-group">
|
<div className="header__right-group">
|
||||||
<AccountMenu />
|
<AccountMenu />
|
||||||
</div>
|
</div>
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.dropdown-container {
|
.sidebar-dropdown__container {
|
||||||
.link-container {
|
.page-link__container {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
.link-text {
|
.page-link__text {
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export default function SidebarDropdown({ onChange }: Props) {
|
|||||||
>
|
>
|
||||||
<em className="em">Select a page</em>
|
<em className="em">Select a page</em>
|
||||||
<MenuItem value="" disabled></MenuItem>
|
<MenuItem value="" disabled></MenuItem>
|
||||||
<div className="dropdown-container">
|
<div className="sidebar-dropdown__container">
|
||||||
{PAGE_LINKS.map((link: ISidebarLink) => (
|
{PAGE_LINKS.map((link: ISidebarLink) => (
|
||||||
<PageLinks key={link.path} title={link.title} path={link.path} />
|
<PageLinks key={link.path} title={link.title} path={link.path} />
|
||||||
))}
|
))}
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React from "react";
|
|
||||||
import DashboardIcon from "@mui/icons-material/Dashboard";
|
import DashboardIcon from "@mui/icons-material/Dashboard";
|
||||||
import { PAGE_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants";
|
import { PAGE_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants";
|
||||||
import PageLinks from "../../../components/PageLinks/PageLinks";
|
import PageLinks from "../../../components/PageLinks/PageLinks";
|
||||||
@ -8,11 +7,11 @@ import "./sideBar.scss";
|
|||||||
|
|
||||||
const SideBar = () => {
|
const SideBar = () => {
|
||||||
return (
|
return (
|
||||||
<aside className="sidebar-container">
|
<aside className="sidebar">
|
||||||
<div className="sidebar-header">
|
<div className="sidebar__header">
|
||||||
<span>
|
<span>
|
||||||
Betrise cashir{" "}
|
Betrise cashir{" "}
|
||||||
<DashboardIcon fontSize="small" className="sidebar-icon-spacing" />
|
<DashboardIcon fontSize="small" className="sidebar__icon-spacing" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{PAGE_LINKS.map((link) => (
|
{PAGE_LINKS.map((link) => (
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
.sidebar-container {
|
.sidebar {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -11,17 +11,17 @@
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
z-index: 1100;
|
z-index: 1100;
|
||||||
border-right: 1px solid #333;
|
border-right: 1px solid #333;
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-header {
|
.sidebar__header {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 24px;
|
margin-bottom: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: white;
|
color: white;
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-icon-spacing {
|
.sidebar__icon-spacing {
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user