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">
import { Component, Vue, Prop } from 'vue-property-decorator';
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';
@Component({

View File

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

View File

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