diff --git a/src/app/questions-list/page.tsx b/src/app/questions-list/page.tsx index 7a1768c..4690eeb 100644 --- a/src/app/questions-list/page.tsx +++ b/src/app/questions-list/page.tsx @@ -452,6 +452,11 @@ export default function QuestionsListPage() { } catch (err) { console.error("Failed to sync pending sections:", err); setIsSyncError(true); + setToastMessage( + t[ + "Sending the match request failed. Please check your connection and try again." + ] ?? "Sending the match request failed. Please check your connection and try again." + ); } finally { setIsSyncing(false); } diff --git a/src/components/Componentes/button.tsx b/src/components/Componentes/button.tsx index 0c9008c..5c013dc 100644 --- a/src/components/Componentes/button.tsx +++ b/src/components/Componentes/button.tsx @@ -153,7 +153,47 @@ export function Button({ ); }; - const button = ( + const content = isLoading ? ( + + ) : ( + + {renderArrow("left")} + + + {children} + + {description && !isOutlined ? ( + + {description} + + ) : null} + + {countdownLocked ? ( + + + + ) : ( + renderArrow("right") + )} + + ); + + if (href) { + return ( + + {content} + + ); + } + + return ( ); - - return href ? ( - {button} - ) : ( - button - ); } type CountdownProgressProps = {