Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert remove_default_export_from_GalleryContainer #1197

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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;
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function findNeighborItem(itemIdx, dir, layoutItems) {
function findNeighborItem(itemIdx, dir, layoutItems) {
const currentItem = layoutItems[itemIdx];

let neighborItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading