Skip to content

Commit

Permalink
removed comments and logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aamil13 committed Sep 27, 2024
1 parent 69547c5 commit 39c0b69
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 39 deletions.
4 changes: 1 addition & 3 deletions src/components/molecules/PostCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ const PostCard = ({
<span className="flex items-center">
<FiRepeat className="mr-1 text-neutral-600" /> 2
</span>
{/* <button className="flex items-center">
<FiShare2 className="mr-1 text-neutral-600" /> Share
</button> */}

<Popover>
<PopoverTrigger>
<span className="flex items-center">
Expand Down
13 changes: 0 additions & 13 deletions src/components/molecules/PostCommentBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,6 @@ const PostCommentBox = ({ showCommentSec, userComments, postID, type, adminId }:
placeholder="Add a comment..."
className="flex-grow mx-1 sm:mx-4 p-1 border-none focus:outline-none w-full lg:min-w-[370px] xs:text-xs sm:text-sm"
/>
{/* <MdGifBox size={24} color="#737373" /> */}
{/* <div>
<input
style={{ display: 'none' }}
type="file"
id={`CommentsImage${postID}`}
onChange={(e: any) => setImageValue(e.target.files[0])}
accept="image/gif,image/webp"
/>
<label htmlFor={`CommentsImage${postID}`}>
<MdGifBox size={24} color="#737373" />
</label>
</div> */}

{comment?.length > 1 && (
<button onClick={() => handlePostComment()} className="text-white bg-primary px-3 my-[2px] sm:px-3 sm:py-2 rounded-full text-sm">
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const Tabs: React.FC<TabsProps> = ({ tabs }) => {
</div>

{/* Tabs Content */}
{/* <div className="mt-4 p-4 bg-white border border-gray-200 rounded-md">{tabs[activeTab].content}</div> */}

<div className="mt-4 p-4 bg-white rounded-md">{tabs[activeTab].content}</div>
</div>
)
Expand Down
2 changes: 0 additions & 2 deletions src/components/molecules/UniversityCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export default function UniversityCard({
memberCount = 242,
currSelectedGroup,
}: Props) {
console.log('unisdasd', currSelectedGroup)

return (
<div className="rounded-2xl bg-white shadow-card">
<div className=" relative h-[164px] w-full overflow-hidden rounded-t-2xl">
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/PostsContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface communityPostType {
const PostContainer = ({ currSelectedGroup }: any) => {
const pathname = usePathname()
const currentPath = pathname.split('/')[2]
// console.log('path', currentPath)

const { userData } = useUniStore()
const { isLoading, data: TimelinePosts, error, isFetching } = useGetTimelinePosts(currentPath == 'timeline')
const timelinePosts = TimelinePosts?.timelinePosts
Expand Down
19 changes: 0 additions & 19 deletions src/components/organisms/UserPostContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import { useCreateUserPost } from '@/services/community-timeline'
import { replaceImage } from '@/services/uploadImage'

function UserPostContainer({ currSelectedGroup, type }: any) {
// console.log('post', currSelectedGroup)

const textareaRef = useRef<HTMLTextAreaElement>(null)
const valueRef = useRef<string>('')
const [images, setImages] = useState<File[]>([])
Expand Down Expand Up @@ -51,22 +49,6 @@ function UserPostContainer({ currSelectedGroup, type }: any) {
}
}

// const handleImageChange = (e: React.ChangeEvent<HTMLInputElement>) => {
// console.log('object')
// const files = e.target.files
// if (files) {
// const fileArray = Array.from(files)
// const newImages = fileArray.map((file) => {
// return URL.createObjectURL(file)
// })
// setImages((prevImages) => [...prevImages, ...newImages])
// }
// }

// const handleImageRemove = (index: number) => {
// setImages((prevImages) => prevImages.filter((_, i) => i !== index))
// }

const handleImageChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const files = e.target.files
if (files) {
Expand Down Expand Up @@ -125,7 +107,6 @@ function UserPostContainer({ currSelectedGroup, type }: any) {
// Handle form submission
const handleSubmit = (e: React.FormEvent) => {
e.preventDefault()
console.log('Submitted value:', valueRef.current) // The current value stored in the ref
// You can do something with the value here, like an API call
handleGroupPost(valueRef.current)
}
Expand Down

0 comments on commit 39c0b69

Please sign in to comment.