Skip to content

Commit

Permalink
fixup! WIP Wire up unfollow
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Jan 29, 2025
1 parent 5da9da2 commit abc70fd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from 'clsx';
import {Button} from '@tryghost/admin-x-design-system';
import {useEffect, useState} from 'react';
import {useFollow} from '../../hooks/useActivityPubQueries';
import {useFollow, useUnfollow} from '../../hooks/useActivityPubQueries';

interface FollowButtonProps {
className?: string;
Expand All @@ -25,7 +25,7 @@ const FollowButton: React.FC<FollowButtonProps> = ({
const [isFollowing, setIsFollowing] = useState(following);
const [isHovered, setIsHovered] = useState(false);

const unfollowMutation = useFollow('index',
const unfollowMutation = useUnfollow('index',
noop,
() => {
setIsFollowing(false);
Expand Down

0 comments on commit abc70fd

Please sign in to comment.