mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
polish(translator): add type='button' to MonitorTab toggle/refresh buttons (GAP-NOVO-7)
Match the rest of the codebase pattern. No functional change — there is no <form> parent — but improves consistency.
This commit is contained in:
@@ -215,6 +215,7 @@ export default function MonitorTab({ onGoToTranslate }: MonitorTabProps) {
|
||||
{autoRefresh ? "radio_button_checked" : "radio_button_unchecked"}
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setAutoRefresh((prev) => !prev)}
|
||||
className="text-sm text-text-main hover:text-primary transition-colors"
|
||||
aria-label={
|
||||
@@ -237,6 +238,7 @@ export default function MonitorTab({ onGoToTranslate }: MonitorTabProps) {
|
||||
: translateOrFallback("paused", "Paused")}
|
||||
</Badge>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => void fetchHistory()}
|
||||
className="flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors"
|
||||
aria-label={tc("refresh")}
|
||||
|
||||
Reference in New Issue
Block a user