mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-04 22:03:07 +00:00
wip
This commit is contained in:
parent
5c1de2c77b
commit
55a753d6aa
@ -83,7 +83,7 @@ const PostCard: React.FC<PostCardProps> = ({ post, commentCount = 0 }) => {
|
||||
}`}
|
||||
onClick={e => handleVote(e, true)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={canVote ? 'Upvote' : 'Connect wallet and verify to vote'}
|
||||
title={canVote ? 'Upvote' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowUp className="w-5 h-5" />
|
||||
</button>
|
||||
@ -108,7 +108,7 @@ const PostCard: React.FC<PostCardProps> = ({ post, commentCount = 0 }) => {
|
||||
}`}
|
||||
onClick={e => handleVote(e, false)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={canVote ? 'Downvote' : 'Connect wallet and verify to vote'}
|
||||
title={canVote ? 'Downvote' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowDown className="w-5 h-5" />
|
||||
</button>
|
||||
|
||||
@ -175,9 +175,7 @@ const PostDetail = () => {
|
||||
}`}
|
||||
onClick={() => handleVotePost(true)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={
|
||||
canVote ? 'Upvote post' : 'Connect wallet and verify to vote'
|
||||
}
|
||||
title={canVote ? 'Upvote post' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowUp className="w-4 h-4" />
|
||||
</button>
|
||||
@ -188,11 +186,7 @@ const PostDetail = () => {
|
||||
}`}
|
||||
onClick={() => handleVotePost(false)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={
|
||||
canVote
|
||||
? 'Downvote post'
|
||||
: 'Connect wallet and verify to vote'
|
||||
}
|
||||
title={canVote ? 'Downvote post' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowDown className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
@ -249,18 +249,18 @@ const PostList = () => {
|
||||
)}
|
||||
|
||||
{!canPost &&
|
||||
verificationStatus === EVerificationStatus.WALLET_CONNECTED && (
|
||||
verificationStatus === EVerificationStatus.WALLET_UNCONNECTED && (
|
||||
<div className="section-spacing content-card-sm">
|
||||
<div className="flex items-center gap-2 mb-2">
|
||||
<Eye className="w-4 h-4 text-cyber-neutral" />
|
||||
<h3 className="font-medium">Read-Only Mode</h3>
|
||||
</div>
|
||||
<p className="text-sm text-cyber-neutral mb-2">
|
||||
Your wallet does not contain any Ordinal Operators. You can browse
|
||||
threads but cannot post or interact.
|
||||
You are not connected. You can browse threads but cannot post or
|
||||
interact.
|
||||
</p>
|
||||
<Badge variant="outline" className="text-xs">
|
||||
No Ordinals Found
|
||||
Wallet Not Connected
|
||||
</Badge>
|
||||
</div>
|
||||
)}
|
||||
@ -284,7 +284,7 @@ const PostList = () => {
|
||||
<p className="empty-state-description">
|
||||
{canPost
|
||||
? 'Be the first to post in this cell!'
|
||||
: 'Connect your wallet and verify Ordinal ownership to start a thread.'}
|
||||
: 'Connect your wallet to start a thread.'}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
@ -296,9 +296,7 @@ const PostList = () => {
|
||||
className={`p-1 rounded-sm hover:bg-cyber-muted/50 ${getPostVoteType(post.id) === 'upvote' ? 'text-cyber-accent' : ''}`}
|
||||
onClick={() => handleVotePost(post.id, true)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={
|
||||
canVote ? 'Upvote' : 'Connect wallet and verify to vote'
|
||||
}
|
||||
title={canVote ? 'Upvote' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowUp className="w-4 h-4" />
|
||||
</button>
|
||||
@ -309,9 +307,7 @@ const PostList = () => {
|
||||
className={`p-1 rounded-sm hover:bg-cyber-muted/50 ${getPostVoteType(post.id) === 'downvote' ? 'text-cyber-accent' : ''}`}
|
||||
onClick={() => handleVotePost(post.id, false)}
|
||||
disabled={!canVote || isVoting}
|
||||
title={
|
||||
canVote ? 'Downvote' : 'Connect wallet and verify to vote'
|
||||
}
|
||||
title={canVote ? 'Downvote' : 'Connect wallet to vote'}
|
||||
>
|
||||
<ArrowDown className="w-4 h-4" />
|
||||
</button>
|
||||
|
||||
@ -154,7 +154,7 @@ export function useForumActions(): ForumActions {
|
||||
if (!permissions.canPost) {
|
||||
toast({
|
||||
title: 'Permission Denied',
|
||||
description: 'You need to verify Ordinal ownership to create posts.',
|
||||
description: permissions.postReason,
|
||||
variant: 'destructive',
|
||||
});
|
||||
return null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user