Remove unused icon from sidebar
This commit is contained in:
parent
c5b9eec89f
commit
6933044d40
2 changed files with 22 additions and 32 deletions
|
|
@ -9,7 +9,6 @@ import {
|
|||
Squares2X2Icon,
|
||||
TagIcon,
|
||||
InboxIcon,
|
||||
CogIcon,
|
||||
} from '@heroicons/react/24/outline';
|
||||
import TelegramIcon from '../Icons/TelegramIcon';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
|
@ -256,16 +255,6 @@ const SidebarFooter: React.FC<SidebarFooterProps> = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* Admin Link */}
|
||||
<Link
|
||||
to="/admin"
|
||||
className="flex items-center justify-center focus:outline-none text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg px-2 py-1 transition-colors duration-200"
|
||||
aria-label="Admin"
|
||||
title="Rules Engine Admin"
|
||||
>
|
||||
<CogIcon className="h-5 w-5" />
|
||||
</Link>
|
||||
|
||||
{/* Dark Mode Toggle */}
|
||||
<button
|
||||
onClick={toggleDarkMode}
|
||||
|
|
|
|||
|
|
@ -574,29 +574,30 @@ const TasksToday: React.FC = () => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{/* Today Progress Bar - integrated with header */}
|
||||
{todaySettings.showProgressBar &&
|
||||
todayProgress.total > 0 && (
|
||||
<div className="mb-1">
|
||||
<div className="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1">
|
||||
<div
|
||||
className="h-1 rounded-full transition-all duration-500 ease-out bg-gradient-to-r from-blue-400 via-blue-500 to-blue-700"
|
||||
style={{
|
||||
width: `${todayProgress.percentage}%`,
|
||||
}}
|
||||
></div>
|
||||
</div>
|
||||
{/* Daily Quote */}
|
||||
{todaySettings.showDailyQuote &&
|
||||
dailyQuote && (
|
||||
<div className="mt-2">
|
||||
<p className="text-s text-gray-400 dark:text-gray-500 font-light text-left">
|
||||
{dailyQuote}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
{/* Today Progress Bar and Daily Quote */}
|
||||
<div className="mb-1">
|
||||
{/* Progress Bar - always show when setting is enabled */}
|
||||
{todaySettings.showProgressBar && (
|
||||
<div className="w-full bg-gray-200 dark:bg-gray-700 rounded-full h-1 mb-2">
|
||||
<div
|
||||
className="h-1 rounded-full transition-all duration-500 ease-out bg-gradient-to-r from-blue-400 via-blue-500 to-blue-700"
|
||||
style={{
|
||||
width: `${todayProgress.percentage}%`,
|
||||
}}
|
||||
></div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Daily Quote - show independently of progress bar */}
|
||||
{todaySettings.showDailyQuote &&
|
||||
dailyQuote && (
|
||||
<div className="mt-2">
|
||||
<p className="text-s text-gray-400 dark:text-gray-500 font-light text-left">
|
||||
{dailyQuote}
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue