rating-cosmetics
This commit is contained in:
parent
a9d9108463
commit
5b7d8a1658
|
@ -73,12 +73,9 @@ export const ShoutRatingControl = (props: ShoutRatingControlProps) => {
|
|||
return (
|
||||
<div class={clsx(styles.rating, props.class)}>
|
||||
<button onClick={() => handleRatingChange(false)} disabled={isLoading()}>
|
||||
<Show when={!isDownvoted()}>
|
||||
<Show when={!isDownvoted()} fallback={<Icon name="rating-control-checked" />}>
|
||||
<Icon name="rating-control-less" />
|
||||
</Show>
|
||||
<Show when={isDownvoted()}>
|
||||
<Icon name="rating-control-checked" />
|
||||
</Show>
|
||||
</button>
|
||||
|
||||
<Popup trigger={<span class={styles.ratingValue}>{props.shout.stat.rating}</span>} variant="tiny">
|
||||
|
@ -89,12 +86,9 @@ export const ShoutRatingControl = (props: ShoutRatingControlProps) => {
|
|||
</Popup>
|
||||
|
||||
<button onClick={() => handleRatingChange(true)} disabled={isLoading()}>
|
||||
<Show when={!isUpvoted()}>
|
||||
<Show when={!isUpvoted()} fallback={<Icon name="rating-control-checked" />}>
|
||||
<Icon name="rating-control-more" />
|
||||
</Show>
|
||||
<Show when={isUpvoted()}>
|
||||
<Icon name="rating-control-checked" />
|
||||
</Show>
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user