Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Feb 18, 2024
1 parent 3171899 commit a92751d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/components/socialFeed/SocialCard/SocialMessageContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { Post } from "../../../api/feed/v1/feed";
import { HTML_TAG_REGEXP } from "../../../utils/regex";
import { zodTryParseJSON } from "../../../utils/sanitize";
import { convertGIFToLocalFileType } from "../../../utils/social-feed";
import {
ZodSocialFeedPostMetadata,
zodSocialFeedCommonMetadata,
} from "../../../utils/types/feed";
import { ZodSocialFeedPostMetadata } from "../../../utils/types/feed";
import { AudioView } from "../../FilePreview/AudioView";
import { ImagesViews } from "../../FilePreview/ImagesViews";
import { VideoView } from "../../FilePreview/VideoView";
Expand Down Expand Up @@ -55,14 +52,9 @@ export const SocialMessageContent: React.FC<Props> = ({ post, isPreview }) => {
);
}, [postMetadata?.gifs]);

const commonMetadata = zodTryParseJSON(
zodSocialFeedCommonMetadata,
post.metadata,
);

const selectedWallet = useSelectedWallet();
const canView = useCanViewPost(
commonMetadata?.premium || 0,
post.premiumLevel,
post.authorId,
selectedWallet?.userId,
);
Expand Down

0 comments on commit a92751d

Please sign in to comment.