mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(pending-post): return to board after abandoned challenge
This commit is contained in:
@@ -65,6 +65,13 @@ vi.mock('@bitsocial/bitsocial-react-hooks', () => ({
|
||||
},
|
||||
state: 'succeeded',
|
||||
}),
|
||||
useCommunities: ({ communities }: { communities?: Array<{ name: string }> } = {}) => ({
|
||||
communities: (communities ?? []).map(() => ({
|
||||
roles: {
|
||||
'0x123': { role: 'moderator' },
|
||||
},
|
||||
})),
|
||||
}),
|
||||
useEditedComment: ({ comment }: { comment?: TestComment }) => ({
|
||||
editedComment: comment,
|
||||
failedEdits: {},
|
||||
|
||||
Reference in New Issue
Block a user