Skip to content

Commit

Permalink
Fix grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Jan 30, 2025
1 parent f239ce6 commit a2400ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/app/components/VideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const VideoCard = ({ video }: { video: VideoCardData }) => {
{video.title}
</div>
<div className={tw`h-2 mb-3 text-sm`}>
{video.views} views | {toAgo(video.rendered_at)}
{video.views} view{video.views === 1 ? '' : 's'} | {toAgo(video.rendered_at)}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/server/app/components/VideoRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const VideoRow = ({ video }: { video: VideoRowData }) => {
</span>
</div>
<div className={tw`h-2 mb-4 mt-2 text-sm`}>
{video.views} views | {toAgo(video.rendered_at)}
{video.views} view{video.views === 1 ? '' : 's'} | {toAgo(video.rendered_at)}
</div>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/server/app/views/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export const VideoView = () => {
)}
<div className={tw`mt-12 relative text-[20px]`}>
<div>
{hasVideo && <span className={tw`float-right ml-8`}>{data.views} views</span>}
{hasVideo && <span className={tw`float-right ml-8`}>{data.views} view{data.views === 1 ? '' : 's'}</span>}
<span className={tw`break-words`}>{data.title}</span>
</div>
</div>
Expand Down

0 comments on commit a2400ec

Please sign in to comment.