Skip to content

Commit

Permalink
feat: add visitors overview and details
Browse files Browse the repository at this point in the history
  • Loading branch information
mfts committed Oct 15, 2024
1 parent da2e0cc commit 832b432
Show file tree
Hide file tree
Showing 14 changed files with 1,178 additions and 11 deletions.
13 changes: 11 additions & 2 deletions components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from "next/link";
import { useRouter } from "next/router";

import { useEffect, useState } from "react";
Expand All @@ -6,6 +7,7 @@ import { TeamContextType, initialState, useTeam } from "@/context/team-context";
import Cookies from "js-cookie";
import {
CogIcon,
ContactIcon,
FolderIcon as FolderLucideIcon,
FolderOpenIcon,
PaletteIcon,
Expand All @@ -29,7 +31,6 @@ import { AddTeamModal } from "./teams/add-team-modal";
import SelectTeam from "./teams/select-team";
import { Progress } from "./ui/progress";
import { ScrollArea } from "./ui/scroll-area";
import Link from "next/link";

export default function Sidebar() {
return (
Expand Down Expand Up @@ -123,6 +124,14 @@ export const SidebarComponent = ({ className }: { className?: string }) => {
? false
: true,
},
{
name: "Visitors",
href: "/visitors",
icon: ContactIcon,
current: router.pathname.includes("visitors"),
active: false,
disabled: userPlan === "free" ? true : false,
},
{
name: "Branding",
href: "/settings/branding",
Expand Down Expand Up @@ -157,7 +166,7 @@ export const SidebarComponent = ({ className }: { className?: string }) => {

<div className="flex h-16 shrink-0 items-center space-x-3">
<p className="flex items-center text-2xl font-bold tracking-tighter text-black dark:text-white">
<Link href="/documents">Papermark{" "}</Link>
<Link href="/documents">Papermark </Link>
{userPlan && userPlan != "free" ? (
<span className="ml-4 rounded-full bg-background px-2.5 py-1 text-xs tracking-normal text-foreground ring-1 ring-gray-800">
{userPlan.charAt(0).toUpperCase() + userPlan.slice(1)}
Expand Down
Loading

0 comments on commit 832b432

Please sign in to comment.