Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function Header() {
const [isOpen, setIsOpen] = useState(false);

useEffect(() => {
if (loginState.isLogin) {
return;
}

getProfile()
.then(res => {
dispatch(setProfile({
Expand Down
2 changes: 1 addition & 1 deletion src/components/post/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function PostCard({post}: { post: PostResponse }) {

return (
<div className="mx-auto h-96 w-full">
<Link to={`/post/${post.id}`} className="rounded-xl overflow-hidden block" target="_blank">
<Link to={`/post/${post.id}`} className="rounded-xl overflow-hidden block">
{(url)
? <img className="w-full h-52 object-cover
transform transition-transform duration-300 ease-out hover:scale-105"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/post/SearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function SearchResults({posts, blogs, postPageInfo, blogPageInfo, handlePostPage
return (
<div className="flex flex-col divide-y divide-gray-200 z-0">
{blogs.map((blog) => (
<Link key={blog.username} to={`/blog/${blog.username}`} target="_blank"
<Link key={blog.username} to={`/blog/${blog.username}`}
className="flex justify-start items-center px-4 py-6 gap-8 divide-y divide-gray-200 hover:bg-gray-100 shadow-gray-400 duration-300 ease-out">
<ProfileImageCircle profileUrl={blog.profileUrl || ""} size="lg"/>
<div className="flex flex-col gap-y-1 justify-center items-start">
Expand Down