Skip to content

Commit

Permalink
Inbound
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 20, 2023
1 parent 02ab936 commit bf0b468
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 53 deletions.
3 changes: 0 additions & 3 deletions apps/dashboard/src/app/[locale]/@dashboard/(root)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Chart } from "@/components/charts/chart";
import { ChartSelectors } from "@/components/charts/chart-selectors";
import { Realtime } from "@/components/charts/realtime";
import { Spending } from "@/components/charts/spending";
import { Transactions } from "@/components/charts/transactions";
import { OverviewModal } from "@/components/modals/overview-modal";
Expand Down Expand Up @@ -57,8 +56,6 @@ export default async function Overview({ searchParams }) {
<Spending disabled={empty} />
<Transactions disabled={empty} />
</div>

<Realtime teamId={userData.team_id} />
</div>
{!isOpen && empty && <OverviewModal />}
</>
Expand Down
41 changes: 0 additions & 41 deletions apps/dashboard/src/components/charts/realtime.tsx

This file was deleted.

7 changes: 6 additions & 1 deletion apps/dashboard/src/components/main-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export function MainMenu() {
{
path: "/inbound",
name: "Inbound",
icon: () => <Icons.Inbox2 size={22} />,
icon: () => (
<div className="relative">
<div className="w-1.5 h-1.5 bg-[#d98d00] rounded-full absolute -top-[5px] -right-[5px]" />
<Icons.Inbox2 size={22} />
</div>
),
},
{
path: "/transactions",
Expand Down
3 changes: 1 addition & 2 deletions apps/dashboard/src/components/notification-center.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ScrollArea } from "@midday/ui/scroll-area";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@midday/ui/tabs";
import { formatDistanceToNow } from "date-fns";
import Link from "next/link";
import { useEffect, useRef, useState } from "react";
import { useEffect, useState } from "react";

function EmptyState({ description }) {
return (
Expand Down Expand Up @@ -65,7 +65,6 @@ function TransactionNotification({
}

export function NotificationCenter() {
const hasSeen = useRef(false);
const [isOpen, setOpen] = useState(false);
const {
hasUnseenNotificaitons,
Expand Down
6 changes: 0 additions & 6 deletions apps/dashboard/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ body {
--sidebar-width: 662px;
}

@media (min-width: 1280px) {
:root {
--sidebar-width: 827px;
}
}

.skeleton-box {
background-color: hsl(var(--border));
color: hsl(var(--border)) !important;
Expand Down

0 comments on commit bf0b468

Please sign in to comment.