Move ValuePair to general directory

This commit is contained in:
Matthias 2021-03-10 16:35:14 +01:00
parent 888c67555a
commit fb108b6073
3 changed files with 13 additions and 12 deletions

View File

@ -60,7 +60,7 @@
<script lang="ts"> <script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator'; import { Component, Vue, Prop } from 'vue-property-decorator';
import { formatPercent, formatPrice, timestampms } from '@/shared/formatters'; import { formatPercent, formatPrice, timestampms } from '@/shared/formatters';
import ValuePair from '@/components/ftbot/ValuePair.vue'; import ValuePair from '@/components/general/ValuePair.vue';
import { Trade } from '@/types'; import { Trade } from '@/types';
@Component({ @Component({

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="row"> <div class="row">
<label class="col-4">{{ description }}</label> <label :class="classLabel">{{ description }}</label>
<div class="col-8"> <div :class="classValue">
<slot></slot> <slot></slot>
</div> </div>
</div> </div>
@ -17,15 +17,16 @@ export default Vue.extend({
type: String, type: String,
required: true, required: true,
}, },
classLabel: {
type: String,
default: 'col-4 font-weight-bold',
},
classValue: {
type: String,
default: 'col-8',
},
}, },
}); });
</script> </script>
<style scoped> <style scoped></style>
label {
font-weight: bold;
}
.row {
max-width: 50em;
}
</style>

View File

@ -1,5 +1,5 @@
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import ValuePair from '@/components/ftbot/ValuePair.vue'; import ValuePair from '@/components/general/ValuePair.vue';
describe('ValuePair.vue', () => { describe('ValuePair.vue', () => {
it('renders description when passed', () => { it('renders description when passed', () => {