...llo this is the content of a post or whatever here it comes{" "}
diff --git a/app/(home-pages)/notifications/Notification.tsx b/app/(home-pages)/notifications/Notification.tsx
index 1402b6ff..c9fc2e38 100644
--- a/app/(home-pages)/notifications/Notification.tsx
+++ b/app/(home-pages)/notifications/Notification.tsx
@@ -2,6 +2,8 @@ import { Avatar } from "components/Avatar";
import { BaseTextBlock } from "app/lish/[did]/[publication]/[rkey]/BaseTextBlock";
import { PubLeafletPublication, PubLeafletRichtextFacet } from "lexicons/api";
import { useEntity, useReplicache } from "src/replicache";
+import { PubIcon } from "components/ActionBar/Publications";
+import { Json } from "supabase/database.types";
export const Notification = (props: {
icon: React.ReactNode;
@@ -9,19 +11,15 @@ export const Notification = (props: {
content?: React.ReactNode;
cardBorderHidden?: boolean;
}) => {
- let { rootEntity } = useReplicache();
- let cardBorderHidden = useEntity(rootEntity, "theme/card-border-hidden")?.data
- .value;
-
return (
{
- let { rootEntity } = useReplicache();
- let cardBorderHidden = useEntity(rootEntity, "theme/card-border-hidden")?.data
- .value;
+ let pubRecord = props.publication?.record as PubLeafletPublication.Record;
return (
{props.postTitle}
{props.children}
-
-
-
- {props.publication.name}
-
+ {props.publication && (
+ <>
+
+
+ >
+ )}
);
};
diff --git a/app/(home-pages)/notifications/NotificationList.tsx b/app/(home-pages)/notifications/NotificationList.tsx
index b26a82d2..1f1d1fb5 100644
--- a/app/(home-pages)/notifications/NotificationList.tsx
+++ b/app/(home-pages)/notifications/NotificationList.tsx
@@ -16,14 +16,22 @@ export function NotificationList({
markAsRead();
}, 500);
}, []);
-
+ let { rootEntity } = useReplicache();
+ let cardBorderHidden = useEntity(rootEntity, "theme/card-border-hidden")?.data
+ .value;
return (
-
+
{notifications.map((n) => {
if (n.type === "comment") {
n;
- return ;
+ return (
+
+ );
}
})}
diff --git a/app/(home-pages)/notifications/ReplyNotification.tsx b/app/(home-pages)/notifications/ReplyNotification.tsx
index dd806220..b839c104 100644
--- a/app/(home-pages)/notifications/ReplyNotification.tsx
+++ b/app/(home-pages)/notifications/ReplyNotification.tsx
@@ -7,13 +7,17 @@ import {
Notification,
} from "./Notification";
-export const DummyReplyNotification = () => {
+export const DummyReplyNotification = (props: {
+ cardBorderHidden: boolean;
+}) => {
return (
}
actionText={<>jared replied to your comment>}
+ cardBorderHidden={props.cardBorderHidden}
content={
diff --git a/components/ActionBar/Navigation.tsx b/components/ActionBar/Navigation.tsx
index bf370238..0ff4240e 100644
--- a/components/ActionBar/Navigation.tsx
+++ b/components/ActionBar/Navigation.tsx
@@ -16,23 +16,10 @@ import {
NotificationsUnreadSmall,
} from "components/Icons/NotificationSmall";
import { SpeedyLink } from "components/SpeedyLink";
-import { NotificationInstance } from "twilio/lib/rest/api/v2010/account/notification";
-import { getIdentityData } from "actions/getIdentityData";
-import { redirect } from "next/navigation";
-import { hydrateNotifications } from "src/notifications";
-import { supabaseServerClient } from "supabase/serverClient";
-import {
- CommentNotification,
- DummyCommentNotification,
-} from "app/(home-pages)/notifications/CommentNotication";
+
+import { CommentNotification } from "app/(home-pages)/notifications/CommentNotication";
import { Separator } from "components/Layout";
import { useIsMobile } from "src/hooks/isMobile";
-import { DummyReplyNotification } from "app/(home-pages)/notifications/ReplyNotification";
-import { DummyFollowNotification } from "app/(home-pages)/notifications/FollowNotification";
-import {
- DummyPostMentionNotification,
- DummyUserMentionNotification,
-} from "app/(home-pages)/notifications/MentionNotification";
import useSWR from "swr";
import {
getNotifications,
@@ -226,7 +213,13 @@ export function NotificationButton(props: { current?: boolean }) {
notifications?.map((n) => {
if (n.type === "comment") {
n;
- return ;
+ return (
+
+ );
}
})
)}