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">
const props = defineProps({
profitRatio: { required: false, default: undefined, type: Number },
profitAbs: { required: false, default: undefined, type: Number },
stakeCurrency: { required: true, type: String },
profitDesc: { required: false, default: '', type: String },
});
const props = defineProps<{
profitRatio?: number;
profitAbs?: number;
stakeCurrency: string;
profitDesc?: string;
}>();
const isProfitable = computed(() => {
return (
(props.profitRatio !== undefined && props.profitRatio > 0) ||