Skip to content
Snippets Groups Projects
Commit 65c63f09 authored by heikkkk's avatar heikkkk
Browse files

refactor: move shop button

parent 458a72df
No related branches found
No related tags found
1 merge request!76Refactor/folder structure
<template> <template>
<button type="button" class="btn btn-primary" id="buttonStyle"><img src="@/assets/items/pigcoin.png" style="width: 2rem"> +{{ buttonText }}</button> <button type="button" class="btn btn-primary" id="buttonStyle"><img src="../../assets/items/pigcoin.png" style="width: 2rem"> +{{ buttonText }}</button>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
......
import { describe, it, expect } from 'vitest' import { describe, it, expect } from 'vitest'
import { mount } from '@vue/test-utils' import { mount } from '@vue/test-utils'
import ImageButtonComponent from '@/components/Buttons/ShopButton.vue' import ImageButtonComponent from '../ShopButton.vue'
describe('ImageButtonComponent', () => { describe('ImageButtonComponent', () => {
it('renders the button with the correct text and image', () => { it('renders the button with the correct text and image', () => {
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import ShopButton from '@/components/Buttons/ShopButton.vue'; import ShopButton from '@/components/Shop/ShopButton.vue';
import { ref, onMounted } from 'vue'; import { ref, onMounted } from 'vue';
import { UserService } from '@/api'; import { UserService } from '@/api';
import { useUserInfoStore } from '@/stores/UserStore'; import { useUserInfoStore } from '@/stores/UserStore';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment