Skip to content

Commit

Permalink
revert remove_default_export_from_GalleryContainer (#1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
liatv committed Mar 12, 2024
1 parent a131b29 commit e73f35c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 15 deletions.
Expand Up @@ -10,18 +10,18 @@ import {
windowWrapper,
} from 'pro-gallery-lib';
import { ItemsHelper } from 'pro-layouts';
import { GalleryView } from './galleryView';
import { SlideshowView } from './slideshowView';
import GalleryView from './galleryView';
import SlideshowView from './slideshowView';
import {
scrollToItemImp,
scrollToGroupImp,
haltScroll,
} from '../../helpers/scrollHelper';
import { ScrollIndicator } from './galleryScrollIndicator';
import ScrollIndicator from './galleryScrollIndicator';
import { createCssLayouts } from '../../helpers/cssLayoutsHelper.js';
import { cssScrollHelper } from '../../helpers/cssScrollHelper.js';
import { VideoScrollHelperWrapper } from '../../helpers/videoScrollHelperWrapper';
import { findNeighborItem } from '../../helpers/layoutUtils';
import VideoScrollHelperWrapper from '../../helpers/videoScrollHelperWrapper';
import findNeighborItem from '../../helpers/layoutUtils';
import { isGalleryInViewport, Deferred } from './galleryHelpers';

export class GalleryContainer extends React.Component {
Expand Down
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { utils, GALLERY_CONSTS } from 'pro-gallery-lib';
import { cssScrollHelper } from '../../helpers/cssScrollHelper';

export class ScrollIndicator extends React.Component {
export default class ScrollIndicator extends React.Component {
constructor(props) {
super();

Expand Down Expand Up @@ -175,5 +175,3 @@ export class ScrollIndicator extends React.Component {
);
}
}

export default ScrollIndicator;
Expand Up @@ -4,7 +4,7 @@ import GalleryDebugMessage from './galleryDebugMessage';
import itemView from '../../item/itemView.js';
import { getItemsInViewportOrMarginByScrollLocation } from '../../helpers/virtualization';

export class GalleryView extends React.Component {
class GalleryView extends React.Component {
constructor(props) {
super(props);
this.handleKeys = this.handleKeys.bind(this);
Expand Down
Expand Up @@ -28,7 +28,7 @@ function getDirection(code) {
throw new Error(`no direction is defined for charCode: ${code}`);
}

export class SlideshowView extends React.Component {
class SlideshowView extends React.Component {
constructor(props) {
super(props);
this.navigationPanelCallbackOnIndexChange = () => {};
Expand Down
2 changes: 1 addition & 1 deletion packages/gallery/src/components/helpers/layoutUtils.js
@@ -1,4 +1,4 @@
export function findNeighborItem(itemIdx, dir, layoutItems) {
function findNeighborItem(itemIdx, dir, layoutItems) {
const currentItem = layoutItems[itemIdx];

let neighborItem;
Expand Down
@@ -1,6 +1,6 @@
import { isEditMode } from 'pro-gallery-lib';

export class VideoScrollHelperWrapper {
class VideoScrollHelperWrapper {
constructor(setPlayingIdxState) {
this.left = 0;
this.top = 0;
Expand Down
2 changes: 0 additions & 2 deletions packages/gallery/src/components/item/videos/getStyle.js
Expand Up @@ -26,5 +26,3 @@ function getStyle(isCrop, isWiderThenContainer) {
};
}
}

export default getStyle;
1 change: 0 additions & 1 deletion packages/gallery/src/components/item/videos/videoItem.js
Expand Up @@ -306,7 +306,6 @@ class VideoItem extends React.Component {
if (this.state.playedOnce && this.state.ready) {
baseClassName.push('playedOnce');
}
//
if (this.props.isCurrentHover) {
baseClassName.push('item-content-hover');
} else {
Expand Down

0 comments on commit e73f35c

Please sign in to comment.