mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
* removed daisy from config * removed tw-elements artefact * removed comments from tailwind config * removed safelist * migrated to tailwind4 and daisyui5 * deleted tailwind.config.js which is not eeded anymore * 3.0.79 * version number * fixed broken layouts * more fixing * more layout fixing * tested theming * small fixes * adapt snapshots to changes * package.json: add unit test update script * more ui refactoring & theme controller * ui improvements * package-lock.json * fix linting * fixed tabs * fix linting * fixed typing --------- Co-authored-by: mahula <lenzmath@posteo.de>
27 lines
783 B
TypeScript
27 lines
783 B
TypeScript
import HeartIcon from '@heroicons/react/24/outline/HeartIcon'
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
import { useAuth } from '#components/Auth/useAuth'
|
|
|
|
export const GratitudeControl = () => {
|
|
const navigate = useNavigate()
|
|
const { isAuthenticated } = useAuth()
|
|
|
|
if (isAuthenticated) {
|
|
return (
|
|
<div className='tw:card tw:bg-base-100 tw:shadow-xl tw:mt-2 tw:w-fit'>
|
|
{
|
|
<div
|
|
className='tw:card-body tw:hover:bg-slate-300 tw:card tw:p-2 tw:h-10 tw:w-10 tw:transition-all tw:duration-300 tw:hover:cursor-pointer'
|
|
onClick={() => {
|
|
navigate('/select-user')
|
|
}}
|
|
>
|
|
<HeartIcon className='tw:stroke-[2.5]' />
|
|
</div>
|
|
}
|
|
</div>
|
|
)
|
|
} else return <></>
|
|
}
|