feat: new nostr-settings profile, scroll to newly created reply

This commit is contained in:
MTG2000
2022-07-30 16:57:54 +03:00
parent d43b3215bb
commit bb08a158ff
6 changed files with 109 additions and 60 deletions

View File

@@ -62,6 +62,7 @@ export default function VoteButton({
hideVotesCoun = false,
dense = false,
resetCounterOnRelease = true,
onSuccess,
...props }: Props) {
const [voteCnt, setVoteCnt] = useState(0)
const voteCntRef = useRef(0);
@@ -83,7 +84,7 @@ export default function VoteButton({
onSuccess: (amount) => {
setBtnState("success");
spawnSparks(10);
props.onSuccess?.(amount);
onSuccess?.(amount);
},
onError: () => setBtnState('fail'),
onSetteled: () => {