Restructure components

This commit is contained in:
Ibitoye Rotimi Best
2021-05-06 07:15:40 +03:00
parent a80ecc31d0
commit c15c421fee
17 changed files with 174 additions and 162 deletions
+27
View File
@@ -0,0 +1,27 @@
<script>
import ArrowUp16 from "carbon-icons-svelte/lib/ArrowUp16";
import Chip from "../Chip/index.svelte";
export let value = 0;
function upVote() {
value = value + 1;
}
</script>
<div class="vote border-none cursor-pointer" on:click={upVote}>
<ArrowUp16 />
<Chip {value} />
</div>
<style>
.vote {
display: flex;
flex-direction: column;
align-items: center;
min-width: 25px;
width: 25px;
justify-content: center;
margin-right: 10px;
}
</style>