mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-21 23:53:52 +00:00
chore: convert profitPill to typed props
This commit is contained in:
parent
0c47a554cc
commit
f810ec8588
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue
Block a user