Skip to content

Commit

Permalink
remove lazy loading promotion dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Hendrik Helms committed Oct 26, 2022
1 parent 7183a2a commit 374ed67
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/TheChessboard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref, onMounted, defineAsyncComponent, watch, reactive } from 'vue';
import { ref, onMounted, watch, reactive } from 'vue';
import PromotionDialog from './PromotionDialog.vue';
import { Chess, type Move, type Square } from 'chess.js';
import { Chessground } from 'chessground/chessground';
import { BoardApi } from '@/classes/BoardApi';
Expand Down Expand Up @@ -46,9 +47,6 @@ const emit = defineEmits<{
(e: 'check', isInCheck: PieceColor): void;
}>();
const PromotionDialog = defineAsyncComponent(
() => import('./PromotionDialog.vue')
);
const boardElement = ref<HTMLElement | null>(null);
const boardConfig = ref<BoardConfig>({});
const game = new Chess();
Expand Down

0 comments on commit 374ed67

Please sign in to comment.