mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
move SendOverview to components
This commit is contained in:
parent
9d14e9dcb6
commit
137408cda4
@ -21,7 +21,7 @@ import FormUserNewsletter from './UserProfile/UserCard_Newsletter.vue'
|
|||||||
import FormUserCoinAnimation from './UserProfile/UserCard_CoinAnimation.vue'
|
import FormUserCoinAnimation from './UserProfile/UserCard_CoinAnimation.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserProfile',
|
name: 'Profile',
|
||||||
components: {
|
components: {
|
||||||
UserCard,
|
UserCard,
|
||||||
FormUserData,
|
FormUserData,
|
||||||
|
|||||||
@ -30,10 +30,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import GddSend from './SendOverview/GddSend.vue'
|
import GddSend from '@/components/GddSend.vue'
|
||||||
import TransactionForm from './SendOverview/GddSend/TransactionForm.vue'
|
import TransactionForm from '@/components/GddSend/TransactionForm.vue'
|
||||||
import TransactionConfirmation from './SendOverview/GddSend/TransactionConfirmation.vue'
|
import TransactionConfirmation from '@/components/GddSend/TransactionConfirmation.vue'
|
||||||
import TransactionResult from './SendOverview/GddSend/TransactionResult.vue'
|
import TransactionResult from '@/components/GddSend/TransactionResult.vue'
|
||||||
import { sendCoins } from '@/graphql/mutations.js'
|
import { sendCoins } from '@/graphql/mutations.js'
|
||||||
|
|
||||||
const EMPTY_TRANSACTION_DATA = {
|
const EMPTY_TRANSACTION_DATA = {
|
||||||
@ -43,7 +43,7 @@ const EMPTY_TRANSACTION_DATA = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SendOverview',
|
name: 'Send',
|
||||||
components: {
|
components: {
|
||||||
GddSend,
|
GddSend,
|
||||||
TransactionForm,
|
TransactionForm,
|
||||||
|
|||||||
@ -71,7 +71,7 @@ describe('router', () => {
|
|||||||
|
|
||||||
it('loads the "Send" component', async () => {
|
it('loads the "Send" component', async () => {
|
||||||
const component = await routes.find((r) => r.path === '/send').component()
|
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 () => {
|
it('loads the "UserProfile" component', async () => {
|
||||||
const component = await routes.find((r) => r.path === '/profile').component()
|
const component = await routes.find((r) => r.path === '/profile').component()
|
||||||
expect(component.default.name).toBe('UserProfile')
|
expect(component.default.name).toBe('Profile')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user