ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
fix: preserve ErrorState SDK compatibility [skip version]
Juan Denis5fb29f14ef7e
diff --git a/frontend/src/components/ErrorState.jsx b/frontend/src/components/ErrorState.jsxindex ecc86aff..5e390a4d 100644--- a/frontend/src/components/ErrorState.jsx+++ b/frontend/src/components/ErrorState.jsx@@ -12,14 +12,38 @@ import { t } from '@/i18n/t';* onRetry={loadData}* />*/-export function ErrorState({ title = 'Something went wrong', message, onRetry, className = '' }) {+export function ErrorState({+ title = t('common.error.failedToLoad', 'Failed to load'),+ message,+ error,+ onRetry,+ compact = false,+ className = '',+}) {+ const errorMessage = message || error?.message+ || t('common.error.loadingData', 'An error occurred while loading data');++ if (compact) {+ return (+ <div className={`error-state-compact ${className}`.trim()} role="alert">+ <AlertTriangle size={16} />+ <span>{errorMessage}</span>+ {onRetry && (+ <Button variant="ghost" size="sm" onClick={onRetry}>+ <RefreshCw size={14} /> {t('common.actions.retry', 'Retry')}+ </Button>+ )}+ </div>+ );+ }+return (- <div className={`sk-error-state ${className}`.trim()}>+ <div className={`sk-error-state ${className}`.trim()} role="alert"><div className="sk-error-state__icon"><AlertTriangle size={32} /></div><h3 className="sk-error-state__title">{title}</h3>- {message && <p className="sk-error-state__message">{message}</p>}+ {errorMessage && <p className="sk-error-state__message">{errorMessage}</p>}{onRetry && (<Button variant="outline" size="sm" onClick={onRetry}><RefreshCw size={14} /> {t('common.actions.tryAgain', 'Try again')}