Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitoo1 committed Apr 12, 2024
1 parent 7e52618 commit f89d778
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions apps/mobile/src/components/Feed/Posts/DeletePostBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Props = {
postRef: DeletePostBottomSheetFragment$key;
};

function DeletePostBottomSheet({ postRef }: Props) {
export default function DeletePostBottomSheet({ postRef }: Props) {
const post = useFragment(
graphql`
fragment DeletePostBottomSheetFragment on Post {
Expand Down Expand Up @@ -55,11 +55,7 @@ function DeletePostBottomSheet({ postRef }: Props) {
}, [deletePost, hideBottomSheetModal, post.dbid]);

return (
<View
// onLayout={handleContentLayout}

className="flex flex-col space-y-6"
>
<View className="flex flex-col space-y-6">
<View className="flex flex-col space-y-4">
<Typography
className="text-lg text-black-900 dark:text-offWhite"
Expand Down Expand Up @@ -95,7 +91,3 @@ function DeletePostBottomSheet({ postRef }: Props) {
</View>
);
}

const ForwardedDeletePostBottomSheet = forwardRef(DeletePostBottomSheet);

export { ForwardedDeletePostBottomSheet as DeletePostBottomSheet };
2 changes: 1 addition & 1 deletion apps/mobile/src/components/Feed/Posts/PostBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import useFollowUser from '~/shared/relay/useFollowUser';
import { useGetSinglePreviewImage } from '~/shared/relay/useGetPreviewImages';
import useUnfollowUser from '~/shared/relay/useUnfollowUser';

import { DeletePostBottomSheet } from './DeletePostBottomSheet';
import DeletePostBottomSheet from './DeletePostBottomSheet';
import ReportPost from './ReportPost';

type Props = {
Expand Down

0 comments on commit f89d778

Please sign in to comment.