Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhwang97 committed May 14, 2024
1 parent 812741e commit bcf6ac5
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/pages/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ const Post: React.FC = () => {
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
>
<path d="M6 13L10 3" stroke="currentColor" strokeLinecap="round"></path>
<path
d="M6 13L10 3"
stroke="currentColor"
strokeLinecap="round"
></path>
</svg>
</li>
<li
Expand All @@ -79,13 +83,17 @@ const Post: React.FC = () => {
{/* <p>{article?.description}</p> */}
{/* place holder text */}
<p className="text-md text-center md:text-left tracking-wider text-[#101066]">
Explore our collection of informative mental health resources designed to help teens navigate their
emotional well-being and find support.
Explore our collection of informative mental health resources
designed to help teens navigate their emotional well-being and
find support.
</p>
{/* <span>{article?.attributes.author}</span> */}
<div className="flex text-sm md:text-md tracking-wider align-middle text-[#101066]">
<div className="flex pr-4 gap-3">
<TwitterShareButton url={window.location.href} title={article?.attributes.title}>
<TwitterShareButton
url={window.location.href}
title={article?.attributes.title}
>
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
Expand All @@ -98,7 +106,10 @@ const Post: React.FC = () => {
<path d="M26.37,26l-8.795-12.822l0.015,0.012L25.52,4h-2.65l-6.46,7.48L11.28,4H4.33l8.211,11.971L12.54,15.97L3.88,26h2.65 l7.182-8.322L19.42,26H26.37z M10.23,6l12.34,18h-2.1L8.12,6H10.23z"></path>
</svg>
</TwitterShareButton>
<FacebookShareButton url={window.location.href} title={article?.attributes.title}>
<FacebookShareButton
url={window.location.href}
title={article?.attributes.title}
>
<svg
xmlns="http://www.w3.org/2000/svg"
x="0px"
Expand All @@ -115,7 +126,9 @@ const Post: React.FC = () => {
<div>{article?.attributes.author ?? "CYCM Team"}</div>
<div className="px-2">&#183;</div>
<div>
{new Date(article?.attributes.published_date).toLocaleDateString("en-US", {
{new Date(
article?.attributes.published_date
).toLocaleDateString("en-US", {
year: "numeric",
month: "long",
day: "numeric",
Expand Down

0 comments on commit bcf6ac5

Please sign in to comment.