hapus komen
This commit is contained in:
@@ -106,7 +106,7 @@ export default function RootLayout() {
|
|||||||
|
|
||||||
async function handleReadNotification(id: string, category: string, idContent: string, title: string) {
|
async function handleReadNotification(id: string, category: string, idContent: string, title: string) {
|
||||||
try {
|
try {
|
||||||
if (title != "Komentar Baru") {
|
if (title !== "Komentar Baru") {
|
||||||
const hasil = await decryptToken(String(token?.current))
|
const hasil = await decryptToken(String(token?.current))
|
||||||
await apiReadOneNotification({ user: hasil, id: id })
|
await apiReadOneNotification({ user: hasil, id: id })
|
||||||
}
|
}
|
||||||
@@ -203,8 +203,6 @@ export default function RootLayout() {
|
|||||||
<Stack.Screen name="feature" options={{ title: 'Fitur' }} />
|
<Stack.Screen name="feature" options={{ title: 'Fitur' }} />
|
||||||
<Stack.Screen name="search" options={{ title: 'Pencarian' }} />
|
<Stack.Screen name="search" options={{ title: 'Pencarian' }} />
|
||||||
<Stack.Screen name="notification" options={{
|
<Stack.Screen name="notification" options={{
|
||||||
title: 'Notifikasi',
|
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
headerTitle: 'Notifikasi',
|
headerTitle: 'Notifikasi',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
header: () => (
|
header: () => (
|
||||||
@@ -213,10 +211,8 @@ export default function RootLayout() {
|
|||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="profile" options={{ title: 'Profile' }} />
|
<Stack.Screen name="profile" options={{ title: 'Profile' }} />
|
||||||
<Stack.Screen name="setting/index" options={{
|
<Stack.Screen name="setting/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
title: 'Pengaturan',
|
title: 'Pengaturan',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightProjectList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Pengaturan"
|
<AppHeader title="Pengaturan"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -225,10 +221,8 @@ export default function RootLayout() {
|
|||||||
)
|
)
|
||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="member/index" options={{
|
<Stack.Screen name="member/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
title: 'Anggota',
|
title: 'Anggota',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderMemberList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Anggota"
|
<AppHeader title="Anggota"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -238,10 +232,8 @@ export default function RootLayout() {
|
|||||||
)
|
)
|
||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="discussion/index" options={{
|
<Stack.Screen name="discussion/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
title: 'Diskusi Umum',
|
title: 'Diskusi Umum',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderDiscussionGeneral />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader
|
<AppHeader
|
||||||
title="Diskusi Umum"
|
title="Diskusi Umum"
|
||||||
@@ -252,10 +244,8 @@ export default function RootLayout() {
|
|||||||
)
|
)
|
||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="project/index" options={{
|
<Stack.Screen name="project/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
title: 'Kegiatan',
|
title: 'Kegiatan',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightProjectList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Kegiatan"
|
<AppHeader title="Kegiatan"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -265,10 +255,8 @@ export default function RootLayout() {
|
|||||||
)
|
)
|
||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="division/index" options={{
|
<Stack.Screen name="division/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
title: 'Divisi',
|
title: 'Divisi',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightDivisionList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Divisi"
|
<AppHeader title="Divisi"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -279,10 +267,8 @@ export default function RootLayout() {
|
|||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="division/[id]/(fitur-division)" options={{ headerShown: false }} />
|
<Stack.Screen name="division/[id]/(fitur-division)" options={{ headerShown: false }} />
|
||||||
<Stack.Screen name="group/index" options={{
|
<Stack.Screen name="group/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
headerTitle: 'Lembaga Desa',
|
headerTitle: 'Lembaga Desa',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightGroupList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Lembaga Desa"
|
<AppHeader title="Lembaga Desa"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -292,10 +278,8 @@ export default function RootLayout() {
|
|||||||
)
|
)
|
||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="position/index" options={{
|
<Stack.Screen name="position/index" options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
headerTitle: 'Jabatan',
|
headerTitle: 'Jabatan',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightPositionList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Jabatan"
|
<AppHeader title="Jabatan"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
@@ -306,10 +290,8 @@ export default function RootLayout() {
|
|||||||
}} />
|
}} />
|
||||||
<Stack.Screen name="announcement/index"
|
<Stack.Screen name="announcement/index"
|
||||||
options={{
|
options={{
|
||||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
||||||
headerTitle: 'Pengumuman',
|
headerTitle: 'Pengumuman',
|
||||||
headerTitleAlign: 'center',
|
headerTitleAlign: 'center',
|
||||||
// headerRight: () => <HeaderRightAnnouncementList />
|
|
||||||
header: () => (
|
header: () => (
|
||||||
<AppHeader title="Pengumuman"
|
<AppHeader title="Pengumuman"
|
||||||
showBack={true}
|
showBack={true}
|
||||||
|
|||||||
Reference in New Issue
Block a user