mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
fixes de ts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import UserCard from '@/components/UserCard.svelte';
|
||||
|
||||
let { data } = $props();
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { busquedaUsuarios } from '@/hooks/busquedaUsuarios';
|
||||
import type { PageProps } from '../$types';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import type { UserResponseDto } from '../../../types';
|
||||
|
||||
export async function load({ params }: PageProps) {
|
||||
export async function load({ params }) {
|
||||
let usuarios: UserResponseDto[] = await busquedaUsuarios(params.user);
|
||||
if (usuarios == null) {
|
||||
return error(500, 'No se pudo alcanzar el servidor.');
|
||||
|
||||
Reference in New Issue
Block a user