mirror of
https://github.com/ManInDark/HabitTrove.git
synced 2026-01-20 22:24:28 +01:00
feat: server permission checking and v0.2.28 release (#178)
This commit is contained in:
22
components/RecheckButton.tsx
Normal file
22
components/RecheckButton.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
'use client'
|
||||
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { RefreshCw } from 'lucide-react'
|
||||
|
||||
export default function RecheckButton() {
|
||||
const handleRecheck = () => {
|
||||
window.location.reload()
|
||||
}
|
||||
|
||||
return (
|
||||
<Button
|
||||
onClick={handleRecheck}
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="bg-red-50 border-red-300 text-red-700 hover:bg-red-100"
|
||||
>
|
||||
<RefreshCw className="h-4 w-4 mr-2" />
|
||||
Recheck
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user