feat: Refactor styling and theme integration across components; update button gradients and remove unused component

This commit is contained in:
2025-05-08 00:05:09 +02:00
parent 24fa4ada61
commit d45039e2f5
7 changed files with 86 additions and 28 deletions
+10 -1
View File
@@ -10,6 +10,7 @@ import {
Group,
} from '@mantine/core';
import { MetodoSelect } from './MetodoSelect';
import { useMantineTheme } from '@mantine/core';
export function LlamadorAPI() {
const [direccion, setDireccion] = useState('http://localhost:8000/api/saludo');
@@ -25,6 +26,9 @@ export function LlamadorAPI() {
return 'red';
};
const theme = useMantineTheme();
const llamarAPI = async () => {
try {
const options: RequestInit = {
@@ -101,7 +105,12 @@ export function LlamadorAPI() {
minRows={3}
/>
<Button onClick={llamarAPI} color="blue">
<Button onClick={llamarAPI}
variant="gradient"
gradient={{
from: theme.colors.brand[7],
to: theme.colors.brand[4],
}}>
Enviar solicitud
</Button>