Skip to content

Commit

Permalink
Adds 'Loading comments...' message
Browse files Browse the repository at this point in the history
  • Loading branch information
ottpeter committed Sep 6, 2024
1 parent 4979ce3 commit 48aea86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Comment/SwarmCommentSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import SwarmCommentList from "./swarm-comment-list/swarm-comment-list";
import { useEffect, useState } from "react";
import SwarmCommentForm from "./swarm-comment-form/swarm-comment-form";
import { Bee, Signer, Topic } from "@ethersphere/bee-js";
import { Wallet } from "ethers";

/**
* stamp - Postage stamp ID. If ommitted a first available stamp will be used.
Expand Down Expand Up @@ -34,7 +33,6 @@ export function SwarmCommentSystem(props: SwarmCommentSystemProps) {
const { stamp, topic, beeApiUrl, privateKey, signer } = props;
const bee = new Bee(beeApiUrl);
const topicHex: Topic = bee.makeFeedTopic(topic);
// const wallet = new Wallet(privateKey);
const [comments, setComments] = useState<Comment[] | null>(null);
const [loading, setLoading] = useState(true);
const [formLoading, setFormLoading] = useState(false);
Expand Down Expand Up @@ -129,7 +127,7 @@ export function SwarmCommentSystem(props: SwarmCommentSystemProps) {


if (!comments) {
return <div>Couldn't load comments</div>;
return <div>Loading comments...</div>;
}

if (error) {
Expand Down

0 comments on commit 48aea86

Please sign in to comment.