chore: convert profitPill to typed props

This commit is contained in:
Matthias 2024-09-14 09:04:30 +02:00
parent 0c47a554cc
commit f810ec8588

View File

@ -1,10 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
const props = defineProps({ const props = defineProps<{
profitRatio: { required: false, default: undefined, type: Number }, profitRatio?: number;
profitAbs: { required: false, default: undefined, type: Number }, profitAbs?: number;
stakeCurrency: { required: true, type: String }, stakeCurrency: string;
profitDesc: { required: false, default: '', type: String }, profitDesc?: string;
}); }>();
const isProfitable = computed(() => { const isProfitable = computed(() => {
return ( return (
(props.profitRatio !== undefined && props.profitRatio > 0) || (props.profitRatio !== undefined && props.profitRatio > 0) ||