fix button, fix alert

This commit is contained in:
Flatlogic Bot 2025-04-05 12:52:10 +00:00
parent 70edd998ed
commit d2941d795a
2 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,8 @@ import { MenuAsideItem } from '../interfaces';
import AsideMenuItem from './AsideMenuItem'; import AsideMenuItem from './AsideMenuItem';
import { useAppSelector } from '../stores/hooks'; import { useAppSelector } from '../stores/hooks';
import { hasPermission } from '../helpers/userPermissions'; import { hasPermission } from '../helpers/userPermissions';
import BaseIcon from './BaseIcon';
import { mdiBell } from '@mdi/js';
type Props = { type Props = {
menu: MenuAsideItem[]; menu: MenuAsideItem[];
@ -32,7 +34,10 @@ export default function AsideMenuList({
/> />
); );
})} })}
<li onClick={() => alert('Hello!')} className="cursor-pointer px-2 py-1 hover:bg-gray-200 rounded-none">New Item</li> <li onClick={() => alert('Hello!')} className="flex items-center cursor-pointer px-1 py-1 text-sm hover:bg-gray-200 rounded-none">
<BaseIcon path={mdiBell} size="18" className="flex-none mx-3"/>
<span className="grow">New Item</span>
</li>
</ul> </ul>
); );
} }

View File

@ -110,6 +110,7 @@ const TasksTablesPage = () => {
<CardBox className='mb-6' cardBoxClassName='flex flex-wrap'> <CardBox className='mb-6' cardBoxClassName='flex flex-wrap'>
{hasCreatePermission && ( {hasCreatePermission && (
<BaseButton <BaseButton
small={true}
className={'mr-3'} className={'mr-3'}
href={'/tasks/tasks-new'} href={'/tasks/tasks-new'}
color='info' color='info'
@ -118,12 +119,14 @@ const TasksTablesPage = () => {
)} )}
<BaseButton <BaseButton
small={true}
className={'mr-3'} className={'mr-3'}
color='info' color='info'
label='Filter' label='Filter'
onClick={addFilter} onClick={addFilter}
/> />
<BaseButton <BaseButton
small={true}
className={'mr-3'} className={'mr-3'}
color='info' color='info'
label='Download CSV' label='Download CSV'
@ -132,6 +135,7 @@ const TasksTablesPage = () => {
{hasCreatePermission && ( {hasCreatePermission && (
<BaseButton <BaseButton
small={true}
color='info' color='info'
label='Upload CSV' label='Upload CSV'
onClick={() => setIsModalActive(true)} onClick={() => setIsModalActive(true)}