upd: pengumuman
Deskripsi: - mengganti layout navbar terbaru - mengganti global state menjadi local state - memakai modal konfirmasi NO Issues
This commit is contained in:
76
src/module/announcement/component/create_announcement.tsx
Normal file
76
src/module/announcement/component/create_announcement.tsx
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
'use client'
|
||||||
|
import { WARNA } from "@/module/_global";
|
||||||
|
import LayoutModal from "@/module/_global/layout/layout_modal";
|
||||||
|
import { Box, Button, Stack, Textarea, TextInput } from "@mantine/core";
|
||||||
|
import { useState } from "react";
|
||||||
|
import toast from "react-hot-toast";
|
||||||
|
import { HiOutlineChevronRight } from "react-icons/hi2";
|
||||||
|
|
||||||
|
export default function CreateAnnouncement() {
|
||||||
|
const [isOpen, setOpen] = useState(false)
|
||||||
|
|
||||||
|
function onTrue(val: boolean) {
|
||||||
|
if (val) {
|
||||||
|
toast.success("Sukses! Data tersimpan");
|
||||||
|
}
|
||||||
|
setOpen(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<Stack
|
||||||
|
align="center"
|
||||||
|
justify="center"
|
||||||
|
gap="xs"
|
||||||
|
pt={30}
|
||||||
|
px={20}
|
||||||
|
>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="text" radius={30} placeholder="Judul Pengumuman" withAsterisk label="Judul" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Textarea
|
||||||
|
size="md"
|
||||||
|
radius={20}
|
||||||
|
w={"100%"}
|
||||||
|
label="Pengumuman"
|
||||||
|
withAsterisk
|
||||||
|
placeholder="Deskripsi Pengumuman"
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Button rightSection={<HiOutlineChevronRight size={14} />} variant="default" fullWidth radius={30} size="md" mt={10}>
|
||||||
|
Pilih Anggota
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
<Box mt={30} mx={20}>
|
||||||
|
<Button
|
||||||
|
c={"white"}
|
||||||
|
bg={WARNA.biruTua}
|
||||||
|
size="md"
|
||||||
|
radius={30}
|
||||||
|
fullWidth
|
||||||
|
onClick={() => { setOpen(true) }}
|
||||||
|
>
|
||||||
|
Simpan
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
<LayoutModal opened={isOpen} onClose={() => setOpen(false)}
|
||||||
|
description="Apakah Anda yakin ingin menambahkan data?"
|
||||||
|
onYes={(val) => { onTrue(val) }} />
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
74
src/module/announcement/component/edit_announcement.tsx
Normal file
74
src/module/announcement/component/edit_announcement.tsx
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
'use client'
|
||||||
|
import { WARNA } from "@/module/_global";
|
||||||
|
import LayoutModal from "@/module/_global/layout/layout_modal";
|
||||||
|
import { Box, Button, Stack, Textarea, TextInput } from "@mantine/core";
|
||||||
|
import { useState } from "react";
|
||||||
|
import toast from "react-hot-toast";
|
||||||
|
import { HiOutlineChevronRight } from "react-icons/hi2";
|
||||||
|
|
||||||
|
export default function EditAnnouncement() {
|
||||||
|
const [isOpen, setOpen] = useState(false)
|
||||||
|
|
||||||
|
function onTrue(val: boolean) {
|
||||||
|
if (val) {
|
||||||
|
toast.success("Sukses! Data tersimpan");
|
||||||
|
}
|
||||||
|
setOpen(false)
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Stack
|
||||||
|
align="center"
|
||||||
|
justify="center"
|
||||||
|
gap="xs"
|
||||||
|
pt={30}
|
||||||
|
px={20}
|
||||||
|
>
|
||||||
|
<TextInput
|
||||||
|
size="md" type="text" radius={30} placeholder="Judul Pengumuman" withAsterisk label="Judul" w={"100%"}
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Textarea
|
||||||
|
size="md"
|
||||||
|
radius={20}
|
||||||
|
w={"100%"}
|
||||||
|
label="Pengumuman"
|
||||||
|
withAsterisk
|
||||||
|
placeholder="Deskripsi Pengumuman"
|
||||||
|
styles={{
|
||||||
|
input: {
|
||||||
|
color: WARNA.biruTua,
|
||||||
|
borderRadius: WARNA.biruTua,
|
||||||
|
borderColor: WARNA.biruTua,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Button rightSection={<HiOutlineChevronRight size={14} />} variant="default" fullWidth radius={30} size="md" mt={10}>
|
||||||
|
Pilih Anggota
|
||||||
|
</Button>
|
||||||
|
</Stack>
|
||||||
|
<Box mt={30} mx={20}>
|
||||||
|
<Button
|
||||||
|
c={"white"}
|
||||||
|
bg={WARNA.biruTua}
|
||||||
|
size="md"
|
||||||
|
radius={30}
|
||||||
|
fullWidth
|
||||||
|
onClick={() => { setOpen(true) }}
|
||||||
|
>
|
||||||
|
Simpan
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
<LayoutModal opened={isOpen} onClose={() => setOpen(false)}
|
||||||
|
description="Apakah Anda yakin ingin mengubah data?"
|
||||||
|
onYes={(val) => { onTrue(val) }} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -1,18 +1,13 @@
|
|||||||
import { isDrawer, LayoutDrawer, WARNA } from '@/module/_global';
|
import { WARNA } from '@/module/_global';
|
||||||
import { useHookstate } from '@hookstate/core';
|
import { Box, Flex, SimpleGrid, Stack, Text } from '@mantine/core';
|
||||||
import { Box, Button, Center, Flex, Group, SimpleGrid, Stack, Text, TextInput } from '@mantine/core';
|
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { IoAddCircle } from "react-icons/io5";
|
import { IoAddCircle } from "react-icons/io5";
|
||||||
import { RiFilter2Line } from "react-icons/ri";
|
import { RiFilter2Line } from "react-icons/ri";
|
||||||
|
|
||||||
export default function DrawerAnnouncement() {
|
export default function DrawerAnnouncement() {
|
||||||
const openDrawer = useHookstate(isDrawer)
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
function onCLose() {
|
|
||||||
openDrawer.set(false)
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<Stack pt={10}>
|
<Stack pt={10}>
|
||||||
@@ -22,7 +17,6 @@ export default function DrawerAnnouncement() {
|
|||||||
<Flex justify={'center'} align={'center'} direction={'column'}
|
<Flex justify={'center'} align={'center'} direction={'column'}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
router.push('/announcement/create')
|
router.push('/announcement/create')
|
||||||
onCLose()
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box>
|
<Box>
|
||||||
|
|||||||
@@ -1,16 +1,21 @@
|
|||||||
import { isDrawer, LayoutDrawer, WARNA } from '@/module/_global';
|
import { WARNA } from '@/module/_global';
|
||||||
import { useHookstate } from '@hookstate/core';
|
import LayoutModal from '@/module/_global/layout/layout_modal';
|
||||||
import { Box, Button, Center, Flex, Group, SimpleGrid, Stack, Text, TextInput } from '@mantine/core';
|
import { Box, Flex, SimpleGrid, Stack, Text, } from '@mantine/core';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
|
import toast from 'react-hot-toast';
|
||||||
import { FaPencil, FaTrash } from 'react-icons/fa6';
|
import { FaPencil, FaTrash } from 'react-icons/fa6';
|
||||||
|
|
||||||
export default function DrawerDetailAnnouncement() {
|
export default function DrawerDetailAnnouncement({ onDeleted }: { onDeleted: (val: boolean) => void }) {
|
||||||
const openDrawer = useHookstate(isDrawer)
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
const [isOpen, setOpen] = useState(false)
|
||||||
|
|
||||||
function onCLose() {
|
function onTrue(val: boolean) {
|
||||||
openDrawer.set(false)
|
if (val) {
|
||||||
|
toast.success('Sukses! Data terhapus')
|
||||||
|
onDeleted(true)
|
||||||
|
}
|
||||||
|
setOpen(false)
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
@@ -18,7 +23,7 @@ export default function DrawerDetailAnnouncement() {
|
|||||||
<SimpleGrid
|
<SimpleGrid
|
||||||
cols={{ base: 3, sm: 3, lg: 3 }}
|
cols={{ base: 3, sm: 3, lg: 3 }}
|
||||||
>
|
>
|
||||||
<Flex justify={'center'} align={'center'} direction={'column'}>
|
<Flex style={{ cursor: 'pointer' }} justify={'center'} align={'center'} direction={'column'} onClick={() => setOpen(true)}>
|
||||||
<Box>
|
<Box>
|
||||||
<FaTrash size={30} color={WARNA.biruTua} />
|
<FaTrash size={30} color={WARNA.biruTua} />
|
||||||
</Box>
|
</Box>
|
||||||
@@ -29,8 +34,7 @@ export default function DrawerDetailAnnouncement() {
|
|||||||
|
|
||||||
<Flex justify={'center'} align={'center'} direction={'column'} onClick={() => {
|
<Flex justify={'center'} align={'center'} direction={'column'} onClick={() => {
|
||||||
router.push('edit/123')
|
router.push('edit/123')
|
||||||
onCLose()
|
}} style={{ cursor: 'pointer' }}>
|
||||||
}}>
|
|
||||||
<Box>
|
<Box>
|
||||||
<FaPencil size={30} color={WARNA.biruTua} />
|
<FaPencil size={30} color={WARNA.biruTua} />
|
||||||
</Box>
|
</Box>
|
||||||
@@ -40,6 +44,9 @@ export default function DrawerDetailAnnouncement() {
|
|||||||
</Flex>
|
</Flex>
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
<LayoutModal opened={isOpen} onClose={() => setOpen(false)}
|
||||||
|
description="Apakah Anda yakin ingin menghapus data?"
|
||||||
|
onYes={(val) => { onTrue(val) }} />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
"use client"
|
"use client"
|
||||||
import { isDrawer, LayoutDrawer, LayoutIconBack, LayoutNavbarHome, LayoutNavbarNew, WARNA } from '@/module/_global';
|
import { isDrawer, LayoutDrawer, LayoutNavbarNew, WARNA } from '@/module/_global';
|
||||||
import { ActionIcon, Box, Drawer, Grid, Group, Text } from '@mantine/core';
|
import { ActionIcon } from '@mantine/core';
|
||||||
import { useRouter } from 'next/navigation';
|
import React, { useState } from 'react';
|
||||||
import React from 'react';
|
|
||||||
import { HiMenu } from "react-icons/hi";
|
import { HiMenu } from "react-icons/hi";
|
||||||
import { useHookstate } from '@hookstate/core';
|
import { useHookstate } from '@hookstate/core';
|
||||||
import DrawerAnnouncement from './drawer_announcement';
|
import DrawerAnnouncement from './drawer_announcement';
|
||||||
|
|
||||||
export default function NavbarAnnouncement() {
|
export default function NavbarAnnouncement() {
|
||||||
const openDrawer = useHookstate(isDrawer)
|
const openDrawer = useHookstate(isDrawer)
|
||||||
|
const [isOpen, setOpen] = useState(false)
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<LayoutNavbarNew back='/home' title='pengumuman'
|
<LayoutNavbarNew back='/home' title='pengumuman'
|
||||||
menu={
|
menu={
|
||||||
<ActionIcon onClick={() => openDrawer.set(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
<ActionIcon onClick={() => setOpen(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
||||||
<HiMenu size={20} color='white' />
|
<HiMenu size={20} color='white' />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
} />
|
} />
|
||||||
<LayoutDrawer opened={openDrawer.get()} title={'MENU'} onClose={() => openDrawer.set(false)}>
|
<LayoutDrawer opened={isOpen} title={'Menu'} onClose={() => setOpen(false)}>
|
||||||
<DrawerAnnouncement />
|
<DrawerAnnouncement />
|
||||||
</LayoutDrawer>
|
</LayoutDrawer>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,33 +1,22 @@
|
|||||||
'use client'
|
'use client'
|
||||||
import { isDrawer, LayoutDrawer, LayoutIconBack, LayoutNavbarHome, WARNA } from "@/module/_global";
|
import { LayoutDrawer, LayoutNavbarNew, WARNA } from "@/module/_global";
|
||||||
import { useHookstate } from "@hookstate/core";
|
import { ActionIcon, Box } from "@mantine/core";
|
||||||
import { ActionIcon, Box, Grid, Group, Text } from "@mantine/core";
|
|
||||||
import { HiMenu } from "react-icons/hi";
|
import { HiMenu } from "react-icons/hi";
|
||||||
import DrawerDetailAnnouncement from "./drawer_detail_announcement";
|
import DrawerDetailAnnouncement from "./drawer_detail_announcement";
|
||||||
|
import { useState } from "react";
|
||||||
|
|
||||||
export default function NavbarDetailAnnouncement() {
|
export default function NavbarDetailAnnouncement() {
|
||||||
const openDrawer = useHookstate(isDrawer)
|
const [isOpenDrawer, setOpenDrawer] = useState(false)
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<LayoutNavbarHome>
|
<LayoutNavbarNew back="" title="Pengumuman"
|
||||||
<Grid justify='center' align='center'>
|
menu={
|
||||||
<Grid.Col span="auto">
|
<ActionIcon onClick={() => setOpenDrawer(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
||||||
<LayoutIconBack />
|
<HiMenu size={20} color='white' />
|
||||||
</Grid.Col>
|
</ActionIcon>}
|
||||||
<Grid.Col span={6}>
|
/>
|
||||||
<Text ta={'center'} fw={'bold'} c={'white'}>PENGUMUMAN</Text>
|
<LayoutDrawer opened={isOpenDrawer} title={'MENU'} onClose={() => setOpenDrawer(false)}>
|
||||||
</Grid.Col>
|
<DrawerDetailAnnouncement onDeleted={() => setOpenDrawer(false)} />
|
||||||
<Grid.Col span="auto">
|
|
||||||
<Group justify='flex-end'>
|
|
||||||
<ActionIcon onClick={() => openDrawer.set(true)} variant="light" bg={WARNA.bgIcon} size="lg" radius="lg" aria-label="Settings">
|
|
||||||
<HiMenu size={20} color='white' />
|
|
||||||
</ActionIcon>
|
|
||||||
</Group>
|
|
||||||
</Grid.Col>
|
|
||||||
</Grid>
|
|
||||||
</LayoutNavbarHome>
|
|
||||||
<LayoutDrawer opened={openDrawer.get()} title={'MENU'} onClose={() => openDrawer.set(false)}>
|
|
||||||
<DrawerDetailAnnouncement />
|
|
||||||
</LayoutDrawer>
|
</LayoutDrawer>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,60 +1,14 @@
|
|||||||
import { WARNA } from "@/module/_global";
|
import { LayoutNavbarNew, WARNA } from "@/module/_global";
|
||||||
import { Box, Stack, TextInput, Button, Textarea } from "@mantine/core";
|
import { Box, Stack, TextInput, Button, Textarea } from "@mantine/core";
|
||||||
import { HiOutlineChevronRight, HiUser } from "react-icons/hi2";
|
import { HiOutlineChevronRight, HiUser } from "react-icons/hi2";
|
||||||
import NavbarCreateAnnouncement from "../component/ui/navbar_create_announcement";
|
import CreateAnnouncement from "../component/create_announcement";
|
||||||
|
|
||||||
export default function ViewCreateAnnouncement() {
|
export default function ViewCreateAnnouncement() {
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<NavbarCreateAnnouncement />
|
{/* <NavbarCreateAnnouncement /> */}
|
||||||
<Stack
|
<LayoutNavbarNew back="" title="Tambah Pengumuman" menu={<></>} />
|
||||||
align="center"
|
<CreateAnnouncement/>
|
||||||
justify="center"
|
|
||||||
gap="xs"
|
|
||||||
pt={30}
|
|
||||||
px={20}
|
|
||||||
>
|
|
||||||
<TextInput
|
|
||||||
size="md" type="text" radius={30} placeholder="Judul Pengumuman" withAsterisk label="Judul" w={"100%"}
|
|
||||||
styles={{
|
|
||||||
input: {
|
|
||||||
color: WARNA.biruTua,
|
|
||||||
borderRadius: WARNA.biruTua,
|
|
||||||
borderColor: WARNA.biruTua,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Textarea
|
|
||||||
size="md"
|
|
||||||
radius={20}
|
|
||||||
w={"100%"}
|
|
||||||
label="Pengumuman"
|
|
||||||
withAsterisk
|
|
||||||
placeholder="Deskripsi Pengumuman"
|
|
||||||
styles={{
|
|
||||||
input: {
|
|
||||||
color: WARNA.biruTua,
|
|
||||||
borderRadius: WARNA.biruTua,
|
|
||||||
borderColor: WARNA.biruTua,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button rightSection={<HiOutlineChevronRight size={14} />} variant="default" fullWidth radius={30} size="md" mt={10}>
|
|
||||||
Pilih Anggota
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
|
||||||
<Box mt={30} mx={20}>
|
|
||||||
<Button
|
|
||||||
c={"white"}
|
|
||||||
bg={WARNA.biruTua}
|
|
||||||
size="md"
|
|
||||||
radius={30}
|
|
||||||
fullWidth
|
|
||||||
>
|
|
||||||
Simpan
|
|
||||||
</Button>
|
|
||||||
</Box>
|
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,60 +1,14 @@
|
|||||||
import { Box, Button, Stack, Textarea, TextInput } from "@mantine/core";
|
import { Box, Button, Stack, Textarea, TextInput } from "@mantine/core";
|
||||||
import NavbarEditAnnouncement from "../component/ui/navbar_edit_announcement";
|
import { LayoutNavbarNew, WARNA } from "@/module/_global";
|
||||||
import { WARNA } from "@/module/_global";
|
|
||||||
import { HiOutlineChevronRight } from "react-icons/hi2";
|
import { HiOutlineChevronRight } from "react-icons/hi2";
|
||||||
|
import EditAnnouncement from "../component/edit_announcement";
|
||||||
|
|
||||||
export default function ViewEditAnnouncement({ data }: { data: string }) {
|
export default function ViewEditAnnouncement({ data }: { data: string }) {
|
||||||
return (
|
return (
|
||||||
<Box>
|
<Box>
|
||||||
<NavbarEditAnnouncement />
|
{/* <NavbarEditAnnouncement /> */}
|
||||||
<Stack
|
<LayoutNavbarNew back="" title="Edit Pengumuman" menu={<></>} />
|
||||||
align="center"
|
<EditAnnouncement />
|
||||||
justify="center"
|
|
||||||
gap="xs"
|
|
||||||
pt={30}
|
|
||||||
px={20}
|
|
||||||
>
|
|
||||||
<TextInput
|
|
||||||
size="md" type="text" radius={30} placeholder="Judul Pengumuman" withAsterisk label="Judul" w={"100%"}
|
|
||||||
styles={{
|
|
||||||
input: {
|
|
||||||
color: WARNA.biruTua,
|
|
||||||
borderRadius: WARNA.biruTua,
|
|
||||||
borderColor: WARNA.biruTua,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Textarea
|
|
||||||
size="md"
|
|
||||||
radius={20}
|
|
||||||
w={"100%"}
|
|
||||||
label="Pengumuman"
|
|
||||||
withAsterisk
|
|
||||||
placeholder="Deskripsi Pengumuman"
|
|
||||||
styles={{
|
|
||||||
input: {
|
|
||||||
color: WARNA.biruTua,
|
|
||||||
borderRadius: WARNA.biruTua,
|
|
||||||
borderColor: WARNA.biruTua,
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Button rightSection={<HiOutlineChevronRight size={14} />} variant="default" fullWidth radius={30} size="md" mt={10}>
|
|
||||||
Pilih Anggota
|
|
||||||
</Button>
|
|
||||||
</Stack>
|
|
||||||
<Box mt={30} mx={20}>
|
|
||||||
<Button
|
|
||||||
c={"white"}
|
|
||||||
bg={WARNA.biruTua}
|
|
||||||
size="md"
|
|
||||||
radius={30}
|
|
||||||
fullWidth
|
|
||||||
>
|
|
||||||
Simpan
|
|
||||||
</Button>
|
|
||||||
</Box>
|
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user