diff --git a/src/components/admin/CommunityNavLinks.scss b/src/components/admin/CommunityNavLinks.scss deleted file mode 100644 index c88e63d..0000000 --- a/src/components/admin/CommunityNavLinks.scss +++ /dev/null @@ -1,88 +0,0 @@ -.community-nav-links { - padding: 0 var(--base); - margin-top: var(--base); - border-top: 1px solid var(--theme-elevation-100); - padding-top: var(--base); - - &__header { - display: flex; - align-items: center; - gap: 8px; - padding: 8px 12px; - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.5px; - color: var(--theme-elevation-500); - } - - &__icon { - font-size: 14px; - } - - &__title { - flex: 1; - } - - &__list { - display: flex; - flex-direction: column; - gap: 2px; - } - - &__link { - display: flex; - align-items: center; - gap: 10px; - padding: 10px 12px; - border-radius: 4px; - text-decoration: none; - color: var(--theme-elevation-800); - font-size: 13px; - transition: all 0.15s ease; - - &:hover { - background-color: var(--theme-elevation-50); - color: var(--theme-elevation-900); - } - - &--active { - background-color: var(--theme-elevation-100); - color: var(--theme-text); - font-weight: 500; - - &:hover { - background-color: var(--theme-elevation-150); - } - } - } - - &__link-icon { - font-size: 16px; - width: 20px; - text-align: center; - } - - &__link-label { - flex: 1; - } -} - -// Dark mode adjustments -[data-theme='dark'] { - .community-nav-links { - &__link { - &:hover { - background-color: var(--theme-elevation-100); - } - - &--active { - background-color: var(--theme-elevation-150); - - &:hover { - background-color: var(--theme-elevation-200); - } - } - } - } -} diff --git a/src/components/admin/CommunityNavLinks.tsx b/src/components/admin/CommunityNavLinks.tsx index 42fe16f..8511493 100644 --- a/src/components/admin/CommunityNavLinks.tsx +++ b/src/components/admin/CommunityNavLinks.tsx @@ -1,50 +1,46 @@ 'use client' -import React from 'react' +import React, { useState } from 'react' import Link from 'next/link' -import { usePathname } from 'next/navigation' - -import './CommunityNavLinks.scss' export const CommunityNavLinks: React.FC = () => { - const pathname = usePathname() + const [open, setOpen] = useState(true) const links = [ - { - href: '/admin/views/community/inbox', - label: 'Community Inbox', - icon: '📥', - }, - { - href: '/admin/views/community/analytics', - label: 'Community Analytics', - icon: '📊', - }, + { href: '/admin/views/community/inbox', label: 'Community Inbox' }, + { href: '/admin/views/community/analytics', label: 'Community Analytics' }, ] return ( -
-
- 💬 - Community -
- + ))} +
+ )} ) } diff --git a/src/components/admin/YouTubeAnalyticsNavLinks.scss b/src/components/admin/YouTubeAnalyticsNavLinks.scss deleted file mode 100644 index 287791f..0000000 --- a/src/components/admin/YouTubeAnalyticsNavLinks.scss +++ /dev/null @@ -1,87 +0,0 @@ -.yt-nav-links { - padding: 0 var(--base); - margin-top: var(--base); - border-top: 1px solid var(--theme-elevation-100); - padding-top: var(--base); - - &__header { - display: flex; - align-items: center; - gap: 8px; - padding: 8px 12px; - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.5px; - color: var(--theme-elevation-500); - } - - &__icon { - font-size: 14px; - } - - &__title { - flex: 1; - } - - &__list { - display: flex; - flex-direction: column; - gap: 2px; - } - - &__link { - display: flex; - align-items: center; - gap: 10px; - padding: 10px 12px; - border-radius: 4px; - text-decoration: none; - color: var(--theme-elevation-800); - font-size: 13px; - transition: all 0.15s ease; - - &:hover { - background-color: var(--theme-elevation-50); - color: var(--theme-elevation-900); - } - - &--active { - background-color: var(--theme-elevation-100); - color: var(--theme-text); - font-weight: 500; - - &:hover { - background-color: var(--theme-elevation-150); - } - } - } - - &__link-icon { - font-size: 16px; - width: 20px; - text-align: center; - } - - &__link-label { - flex: 1; - } -} - -[data-theme='dark'] { - .yt-nav-links { - &__link { - &:hover { - background-color: var(--theme-elevation-100); - } - - &--active { - background-color: var(--theme-elevation-150); - - &:hover { - background-color: var(--theme-elevation-200); - } - } - } - } -} diff --git a/src/components/admin/YouTubeAnalyticsNavLinks.tsx b/src/components/admin/YouTubeAnalyticsNavLinks.tsx index 1e51fb1..0858fe5 100644 --- a/src/components/admin/YouTubeAnalyticsNavLinks.tsx +++ b/src/components/admin/YouTubeAnalyticsNavLinks.tsx @@ -1,43 +1,45 @@ 'use client' -import React from 'react' +import React, { useState } from 'react' import Link from 'next/link' -import { usePathname } from 'next/navigation' - -import './YouTubeAnalyticsNavLinks.scss' export const YouTubeAnalyticsNavLinks: React.FC = () => { - const pathname = usePathname() + const [open, setOpen] = useState(true) const links = [ - { - href: '/admin/youtube-analytics', - label: 'YouTube Analytics', - icon: '📈', - }, + { href: '/admin/youtube-analytics', label: 'YouTube Analytics' }, ] return ( -
-
- 🎬 - YouTube -
- + ))} +
+ )} ) }