mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Refactor: switch data fetching from server side to client
This commit is contained in:
@@ -41,7 +41,7 @@ const BreweryCard: FC<{ brewery: z.infer<typeof BreweryPostQueryResult> }> = ({
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
{!isLoading && <span>liked by {likeCount} users</span>}
|
||||
{user && (
|
||||
{!!user && !isLoading && (
|
||||
<BreweryPostLikeButton breweryPostId={brewery.id} mutateCount={mutate} />
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user