Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
am5815 committed May 17, 2024
1 parent b47f4b5 commit 7a5edf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/components/IonicCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function IonicCard({
manual_id,
author,
tag,
teaser
teaser,
}: CardProps) {
const [summary, setSummary] = useState<string>(body.split(".")[0]);
const [sentences, setSentences] = useState<string[]>(body.split("."));
Expand Down Expand Up @@ -92,9 +92,7 @@ export default function IonicCard({
lineHeight: "1.75rem",
}}
>
{teaser.length > 200
? `${teaser.substring(0, 200)}...`
: `${teaser}`}
{teaser.length > 200 ? `${teaser.substring(0, 200)}...` : `${teaser}`}
</IonCardContent>
{/* have card modal button at bottom */}
<div
Expand Down
4 changes: 1 addition & 3 deletions src/pages/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ const Post: React.FC = () => {
{/* <p>{article?.description}</p> */}
{/* place holder text */}
<p className="text-md text-center md:text-left tracking-wider text-[#101066]">
{
article?.attributes.teasers
}
{article?.attributes.teasers}
</p>
{/* <span>{article?.attributes.author}</span> */}
<div className="flex text-sm md:text-md tracking-wider align-middle text-[#101066]">
Expand Down

0 comments on commit 7a5edf4

Please sign in to comment.