test server
This commit is contained in:
@@ -30,53 +30,55 @@ export default function UserSearch_MainView({
|
|||||||
async function onSearch(name: string) {
|
async function onSearch(name: string) {
|
||||||
await UserSearch_searchByName(name).then((res) => setUser(res as any));
|
await UserSearch_searchByName(name).then((res) => setUser(res as any));
|
||||||
}
|
}
|
||||||
return (
|
|
||||||
<>
|
return<></>
|
||||||
<Box>
|
// return (
|
||||||
{/* <pre>{JSON.stringify(user, null,2)}</pre>r */}
|
// <>
|
||||||
<Stack spacing={"md"}>
|
// <Box>
|
||||||
<TextInput
|
// {/* <pre>{JSON.stringify(user, null,2)}</pre>r */}
|
||||||
icon={<IconSearch size={20} />}
|
// <Stack spacing={"md"}>
|
||||||
placeholder="Masukan nama pegguna"
|
// <TextInput
|
||||||
onChange={(val) => onSearch(val.target.value)}
|
// icon={<IconSearch size={20} />}
|
||||||
/>
|
// placeholder="Masukan nama pegguna"
|
||||||
{user.map((e) => (
|
// onChange={(val) => onSearch(val.target.value)}
|
||||||
<Stack key={e.id} spacing={"xs"}>
|
// />
|
||||||
<Grid>
|
// {user.map((e) => (
|
||||||
<Grid.Col span={2}>
|
// <Stack key={e.id} spacing={"xs"}>
|
||||||
{/* <Avatar
|
// <Grid>
|
||||||
radius={"xl"}
|
// <Grid.Col span={2}>
|
||||||
size={"lg"}
|
// {/* <Avatar
|
||||||
src={
|
// radius={"xl"}
|
||||||
RouterProfile.api_foto_profile + `${e?.Profile.imagesId}`
|
// size={"lg"}
|
||||||
}
|
// src={
|
||||||
/> */}
|
// RouterProfile.api_foto_profile + `${e?.Profile.imagesId}`
|
||||||
</Grid.Col>
|
// }
|
||||||
<Grid.Col span={"auto"}>
|
// /> */}
|
||||||
<Stack spacing={0}>
|
// </Grid.Col>
|
||||||
<Text fw={"bold"} truncate>
|
// <Grid.Col span={"auto"}>
|
||||||
{e.Profile.name}
|
// <Stack spacing={0}>
|
||||||
</Text>
|
// <Text fw={"bold"} truncate>
|
||||||
<Text fz={"sm"} fs={"italic"}>
|
// {e.Profile.name}
|
||||||
+{e.nomor}
|
// </Text>
|
||||||
</Text>
|
// <Text fz={"sm"} fs={"italic"}>
|
||||||
</Stack>
|
// +{e.nomor}
|
||||||
</Grid.Col>
|
// </Text>
|
||||||
<Grid.Col span={2}>
|
// </Stack>
|
||||||
<Center h={"100%"}>
|
// </Grid.Col>
|
||||||
<ActionIcon variant="transparent"
|
// <Grid.Col span={2}>
|
||||||
onClick={() => router.push(RouterProfile.katalog + `${e.Profile.id}`)}
|
// <Center h={"100%"}>
|
||||||
>
|
// <ActionIcon variant="transparent"
|
||||||
<IconChevronRight />
|
// onClick={() => router.push(RouterProfile.katalog + `${e.Profile.id}`)}
|
||||||
</ActionIcon>
|
// >
|
||||||
</Center>
|
// <IconChevronRight />
|
||||||
</Grid.Col>
|
// </ActionIcon>
|
||||||
</Grid>
|
// </Center>
|
||||||
<Divider />
|
// </Grid.Col>
|
||||||
</Stack>
|
// </Grid>
|
||||||
))}
|
// <Divider />
|
||||||
</Stack>
|
// </Stack>
|
||||||
</Box>
|
// ))}
|
||||||
</>
|
// </Stack>
|
||||||
);
|
// </Box>
|
||||||
|
// </>
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user