Skip to content

Commit

Permalink
feat: Disable the create feed button for unauthenticated users (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon authored Apr 18, 2024
1 parent c5ca2f6 commit c6c994d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/CreateFeed/CreateFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { createFeed, createFeedInstanceWithFS } from "./createFeedHelper";
import { Types } from "./types/feed";

export default function CreateFeed() {
const isLoggedIn = useTypedSelector((state) => state.user.isLoggedIn);
const [feedProcessing, setFeedProcessing] = React.useState(false);
const queryClient = useQueryClient();
const router = useContext(MainRouterContext);
Expand Down Expand Up @@ -215,6 +216,7 @@ export default function CreateFeed() {
icon={<CodeBranchIcon />}
variant="primary"
onClick={() => closeWizard()}
isDisabled={!isLoggedIn}
>
Create Feed
</Button>
Expand Down

0 comments on commit c6c994d

Please sign in to comment.