Skip to content

Commit

Permalink
fix: resolve warnings and errors when quick filters changed on catego…
Browse files Browse the repository at this point in the history
…ry page
  • Loading branch information
dyersituations committed Jun 11, 2024
1 parent 80a6be8 commit ca13156
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,40 @@
<template>
<div class="fundraising-status-meter tw-bg-tertiary" :class="{short: props.shortMeter}">
<div class="fundraising-status-meter tw-bg-tertiary" :class="{ short: shortMeter }">
<span
v-if="props.isFunded"
v-if="isFunded"
class="meter tw-bg-brand"
style="width: 100%;"
>
</span>
<span
v-else
class="meter tw-bg-brand"
:style="`width: ${(props.percentRaised * 100)}%;`"
:style="`width: ${(percentRaised * 100)}%;`"
>
</span>
</div>
</template>

<script>
export default {
name: 'FundraisingStatusMeter',
props: {
shortMeter: {
type: Boolean,
default: false,
},
isFunded: {
type: Boolean,
default: false,
},
percentRaised: {
type: Number,
default: 0,
},
},
};
</script>

<style lang="scss" scoped>
@import '#src/assets/scss/settings';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
return this.selected === this.index;
},
boxShadow() {
if (this.activeLoan) return '0px 4px 15px rgba(0, 0, 0, 0.05);';
if (this.activeLoan) return '0px 4px 15px rgba(0, 0, 0, 0.05)';
return 'none';
}
},
Expand Down

0 comments on commit ca13156

Please sign in to comment.