Skip to content

Commit

Permalink
Fix: Open prevew in new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilalekha committed Jun 18, 2021
1 parent 56e4b65 commit e7a8124
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions component/myblogs/WriteNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,10 @@ export default function WriteNav({
<p>Settings</p>
</div>
<div className="bg-blue-500 border border-blue-500 text-white hover:text-blue-500 hover:bg-white text-sm font-semibold px-4 py-2 mr-3 rounded-sm cursor-pointer duration-700">
<Link href={`/p/${currentPost._id}`}>
<a>Preview</a>
</Link>
{/* <Link href={`/p/${currentPost._id}`}></Link> */}
<a href={`/p/${currentPost._id}`} target="_blank">
Preview
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit e7a8124

Please sign in to comment.