tuki testeaduki y andanduki

This commit is contained in:
2025-01-13 17:10:42 -03:00
parent 69b83c8380
commit 062b97515f
4 changed files with 43 additions and 20 deletions

View File

@@ -23,6 +23,7 @@
if (leiContrato) {
let idcontrato = Number(men.mensaje.split(" ").reverse()[0]);
onConfirm(idcontrato);
onClose();
}
}
@@ -30,6 +31,7 @@
if (leiContrato) {
let idcontrato = Number(men.mensaje.split(" ").reverse()[0]);
onCancel(idcontrato);
onClose();
}
}
</script>
@@ -57,7 +59,7 @@
disabled={!contratoDescargado}
/>
<label class="form-check-label" for="leiContratoCheckbox">
Leí el contrato
Firme el contrato con el agente de la inmobiliaria
</label>
</div>
</div>

View File

@@ -2,7 +2,12 @@
import { Navbar, NavbarBrand, NavbarToggler, NavItem, Nav, NavLink, Collapse } from "@sveltestrap/sveltestrap";
let isOpen:boolean = false;
let theme = $state(localStorage.getItem("theme") ?? "light");
const toggleTheme = () => {
theme = theme === "light" ? "dark" : "light";
document.body.setAttribute("data-bs-theme", theme);
localStorage.setItem("theme", theme);
};
</script>
@@ -10,6 +15,15 @@
<NavbarBrand href="/">
AlquilaFacil
</NavbarBrand>
<div>
<button class="badge btn" onclick={toggleTheme} style="background-color: cadetblue;">
{#if theme === "light" }
<img src="/toggle-left.svg" alt=""/>
{:else}
<img src="/toggle-right.svg" alt=""/>
{/if}
</button>
</div>
<NavbarToggler on:click={() => (isOpen = !isOpen)} />
<Collapse isOpen={isOpen} navbar expand="md">
<Nav class="ms-auto" navbar>