CLASSROOMIO-T-46: Forum CRUD MVP

Co-authored-by: Rotimi Best <[email protected]>

Merge-request: CLASSROOMIO-MR-13
Merged-by: Digdippa Team <[email protected]>
This commit is contained in:
Rotimi Best
2023-05-20 23:53:28 +00:00
committed by Space Cloud
co-authored by Rotimi Best
parent 779827ba46
commit c36a49a1ee
42 changed files with 871 additions and 1573 deletions
+6 -5
View File
@@ -3,13 +3,14 @@
import Chip from '../Chip/index.svelte';
export let value = 0;
function upVote() {
value = value + 1;
}
export let upVote = () => {};
export let disabled = false;
</script>
<div class="vote border-none cursor-pointer" on:click={upVote}>
<div
class="vote border-none {disabled ? 'cursor-not-allowed' : 'cursor-pointer'}"
on:click={disabled ? undefined : upVote}
>
<ArrowUp16 />
<Chip {value} />
</div>