Files
supabase/apps/studio/components/ui/DataTable/RefreshButton.tsx
kemal.earth 5a0e1cb1cc feat(studio): log drains entry point from logs (#40095)
* fix: field reference button padding

* fix: remove overriding button style on field ref button

* fix: tidy up the asChild stuff on side panel trigger element

* fix: bunch of type errors on logs sidebar

Theres a temp any fix in there dont kill me frontend team :D

* feat: add to new logs sidebar too

* feat: add to download dropdown menus

* chore: alphabetical order on new logs dropdown

* chore: add target blank to sheet footer

* fix: gap between buttons on old logs toolbar

* feat: add a separator on old logs

* style: new logs top buttons correct types
2025-11-05 11:19:50 +00:00

28 lines
686 B
TypeScript

import { LoaderCircle, RefreshCcw } from 'lucide-react'
import { ButtonTooltip } from '../ButtonTooltip'
interface RefreshButtonProps {
isLoading: boolean
onRefresh: () => void
}
export const RefreshButton = ({ isLoading, onRefresh }: RefreshButtonProps) => {
return (
<ButtonTooltip
size="tiny"
type="default"
disabled={isLoading}
onClick={onRefresh}
className="w-[26px]"
icon={
isLoading ? (
<LoaderCircle className="text-foreground animate-spin" />
) : (
<RefreshCcw className="text-foreground" />
)
}
tooltip={{ content: { side: 'bottom', text: 'Refresh logs' } }}
/>
)
}