move SendOverview to components

This commit is contained in:
Moriz Wahl 2022-03-07 19:34:35 +01:00
parent 9d14e9dcb6
commit 137408cda4
11 changed files with 8 additions and 8 deletions

View File

@ -21,7 +21,7 @@ import FormUserNewsletter from './UserProfile/UserCard_Newsletter.vue'
import FormUserCoinAnimation from './UserProfile/UserCard_CoinAnimation.vue'
export default {
name: 'UserProfile',
name: 'Profile',
components: {
UserCard,
FormUserData,

View File

@ -30,10 +30,10 @@
</div>
</template>
<script>
import GddSend from './SendOverview/GddSend.vue'
import TransactionForm from './SendOverview/GddSend/TransactionForm.vue'
import TransactionConfirmation from './SendOverview/GddSend/TransactionConfirmation.vue'
import TransactionResult from './SendOverview/GddSend/TransactionResult.vue'
import GddSend from '@/components/GddSend.vue'
import TransactionForm from '@/components/GddSend/TransactionForm.vue'
import TransactionConfirmation from '@/components/GddSend/TransactionConfirmation.vue'
import TransactionResult from '@/components/GddSend/TransactionResult.vue'
import { sendCoins } from '@/graphql/mutations.js'
const EMPTY_TRANSACTION_DATA = {
@ -43,7 +43,7 @@ const EMPTY_TRANSACTION_DATA = {
}
export default {
name: 'SendOverview',
name: 'Send',
components: {
GddSend,
TransactionForm,

View File

@ -71,7 +71,7 @@ describe('router', () => {
it('loads the "Send" component', async () => {
const component = await routes.find((r) => r.path === '/send').component()
expect(component.default.name).toBe('SendOverview')
expect(component.default.name).toBe('Send')
})
})
@ -82,7 +82,7 @@ describe('router', () => {
it('loads the "UserProfile" component', async () => {
const component = await routes.find((r) => r.path === '/profile').component()
expect(component.default.name).toBe('UserProfile')
expect(component.default.name).toBe('Profile')
})
})