mirror of
https://github.com/supabase/supabase.git
synced 2026-06-21 08:46:00 +08:00
* 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
28 lines
686 B
TypeScript
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' } }}
|
|
/>
|
|
)
|
|
}
|