Skip to content

Commit

Permalink
Changed KResponsiveWindow to useKResponsivewindow in Slidehow Viewer …
Browse files Browse the repository at this point in the history
…Plugin
  • Loading branch information
moweiss committed Nov 15, 2023
1 parent 05b93f4 commit e5fe1d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ If you have contributed to Kolibri, feel free to add your name and Github accoun
| Vikramaditya Singh | Ghat0tkach |
| Kris Katkus | katkuskris |
| Garvit Singhal | GarvitSinghal47 |
| Mazen Oweiss | moweiss |
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
import client from 'kolibri.client';
import responsiveElementMixin from 'kolibri.coreVue.mixins.responsiveElementMixin';
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import useKResponsiveWindow from 'kolibri-design-system/lib/useKResponsiveWindow';
import UiIconButton from 'kolibri-design-system/lib/keen/UiIconButton';
import CoreFullscreen from 'kolibri.coreVue.components.CoreFullscreen';
Expand All @@ -102,7 +102,17 @@
HooperPagination,
HooperNavigation,
},
mixins: [responsiveElementMixin, responsiveWindowMixin],
setup() {
const {
windowIsLarge,
windowIsSmall
} = useKResponsiveWindow();
return {
windowIsLarge,
windowIsSmall
}
},
mixins: [responsiveElementMixin],
data: () => ({
isInFullscreen: false,
slides: [],
Expand Down

0 comments on commit e5fe1d9

Please sign in to comment.