Skip to content

Commit

Permalink
fix(point-of-sale): typing
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSamuel committed Jun 19, 2024
1 parent de8d803 commit 8ac79f6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 91 deletions.
4 changes: 2 additions & 2 deletions apps/point-of-sale/src/components/Banner/BannerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const switchToNextBanner = () => {
let timeoutId: number;
watch(currentBanner, () => {
if (currentBanner.value) {
clearTimeout(timeoutId)
clearTimeout(timeoutId);
timeoutId = setTimeout(switchToNextBanner, currentBanner.value.duration * 1000);
}
})
});
// If new banners are fetched we reinitialize the carousel
watch(activeBanners, (newBanners) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import { computed, onMounted } from "vue";
import { usePointOfSaleStore } from "@/stores/pos.store";
import BuyerSelectButtonComponent from "@/components/BuyerSelect/BuyerSelectButtonComponent.vue";
// import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { UserResponse } from "@sudosos/sudosos-client";
const emit = defineEmits(['cancelSelectCreator']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</template>

<script setup lang="ts">
// import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed, ref, watch } from "vue";
import { logoutService } from "@/services/logoutService";
import { useCartStore } from "@/stores/cart.store";
Expand Down
2 changes: 0 additions & 2 deletions apps/point-of-sale/src/components/SettingsIconComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import { useAuthStore } from "@sudosos/sudosos-frontend-common";
import { storeToRefs } from "pinia";
import { PointOfSaleResponse } from "@sudosos/sudosos-client";
import { PointOfSaleSwitchService } from "@/services/PointOfSaleSwitchService";
// import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { logoutService } from "@/services/logoutService";
const visible = ref(false);
Expand Down Expand Up @@ -94,7 +93,6 @@ const openSettings = () => {
.settings-icon {
height: 100px;
position: fixed;
bottom: 0px;
left: 60px;
font-size: 70px;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@
</div>
<div>
<ScrollPanel class="custombar" style="width: 100%; height: 25rem;">
<UserSearchRowComponent v-for="user in getUsers" :user="user" :key="user.id"
@click="selectUser(user)"/>
<UserSearchRowComponent v-for="user in getUsers" :user="user as UserResponse" :key="user.id"
@click="selectUser(user as UserResponse)"/>
</ScrollPanel>
</div>
</div>
</template>

<script setup lang="ts">
// import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed, onMounted, Ref, ref, watch } from "vue";
import apiService from "@/services/ApiService";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<script setup lang="ts">
import { GewisUserResponse, UserResponse } from "@sudosos/sudosos-client";
import { useCartStore } from "@/stores/cart.store";
// import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
const props = defineProps({
user: {
Expand Down
83 changes: 2 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ac79f6

Please sign in to comment.