this.onMouseDown(e)}
- onTouchStart={(e) => this.onMouseDown(e, true)}
- onTouchMove={(e) => this.onMouseMove(e, true)}
- onKeyDown={(e) => this.onKeyDown(e)}
- role="button"
- tabIndex={0}
- style={pointerStyle}
- ref={(ref) => (this.sliderRef = ref)}
- />
- );
- }
-}
-
-SliderPointer.propTypes = {
- /** Set Slider Pointer's position | 0 */
- position: PropTypes.number,
- /** Callback function invoked when user moves the Slider Pointer | null */
- onMove: PropTypes.func,
-};
-
-SliderPointer.defaultProps = {
- position: 0,
- onMove: null,
-};
-
-SliderPointer.displayName = 'SliderPointer';
-
-export default SliderPointer;
diff --git a/src/legacy/Slider/examples/Cross.js b/src/legacy/Slider/examples/Cross.js
deleted file mode 100644
index 2ea5681b6c..0000000000
--- a/src/legacy/Slider/examples/Cross.js
+++ /dev/null
@@ -1,25 +0,0 @@
-import React from 'react';
-import { Slider } from '@momentum-ui/react-collaboration';
-export default class SliderCross extends React.Component {
- state = {
- slider1: { low: 100, high: 200 },
- };
- render() {
- return (
-
-
- Low: {this.state.slider1.low} High: {this.state.slider1.high}
-
- this.setState({ slider1: value })}
- />
-
- );
- }
-}
diff --git a/src/legacy/Slider/examples/Default.js b/src/legacy/Slider/examples/Default.js
deleted file mode 100644
index 9671d8ad32..0000000000
--- a/src/legacy/Slider/examples/Default.js
+++ /dev/null
@@ -1,18 +0,0 @@
-import React from 'react';
-import { Slider } from '@momentum-ui/react-collaboration';
-export default class DefaultSlider extends React.Component {
- state = {
- value: 200,
- };
-
- handleChange = (value) => this.setState({ value });
-
- render() {
- return (
-
-
Value: {this.state.value}
-
-
- );
- }
-}
diff --git a/src/legacy/Slider/examples/KitchenSink.js b/src/legacy/Slider/examples/KitchenSink.js
deleted file mode 100644
index 79381b7140..0000000000
--- a/src/legacy/Slider/examples/KitchenSink.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from 'react';
-import { SliderCross, SliderDefault, SliderTwoHandles, SliderStep } from './index';
-import { Slider } from '@momentum-ui/react-collaboration';
-export default class SliderKitchenSink extends React.Component {
- render() {
- return (
-
- );
- }
-}
diff --git a/src/legacy/Slider/examples/KitchenSink.stories.tsx b/src/legacy/Slider/examples/KitchenSink.stories.tsx
deleted file mode 100644
index cfc6c23f52..0000000000
--- a/src/legacy/Slider/examples/KitchenSink.stories.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import LegacyKitchenSink from './KitchenSink';
-import React from 'react';
-
-export default {
- title: 'Legacy/Slider',
- component: LegacyKitchenSink,
-};
-
-// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
-const Legacy = () =>
;
-
-export { Legacy };
diff --git a/src/legacy/Slider/examples/Step.js b/src/legacy/Slider/examples/Step.js
deleted file mode 100644
index 9c482db1a3..0000000000
--- a/src/legacy/Slider/examples/Step.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import React from 'react';
-import { Slider } from '@momentum-ui/react-collaboration';
-export default class SliderStep extends React.Component {
- state = {
- slider1: { low: 100, high: 200 },
- };
- render() {
- return (
-
-
-
- Low: {this.state.slider1.low} High: {this.state.slider1.high}
-
- this.setState({ slider1: value })}
- />
-
-
- );
- }
-}
diff --git a/src/legacy/Slider/examples/TwoHandles.js b/src/legacy/Slider/examples/TwoHandles.js
deleted file mode 100644
index bdd4f30a8f..0000000000
--- a/src/legacy/Slider/examples/TwoHandles.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import React from 'react';
-import { Slider } from '@momentum-ui/react-collaboration';
-export default class SliderTwoHandles extends React.Component {
- state = {
- slider1: { low: 100, high: 200 },
- };
- render() {
- return (
-
-
- Low: {this.state.slider1.low} High: {this.state.slider1.high}
-
- this.setState({ slider1: value })}
- />
-
- );
- }
-}
diff --git a/src/legacy/Slider/examples/index.js b/src/legacy/Slider/examples/index.js
deleted file mode 100644
index 4c645b7489..0000000000
--- a/src/legacy/Slider/examples/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export { default as SliderCross } from './Cross';
-export { default as SliderDefault } from './Default';
-export { default as SliderKitchenSink } from './KitchenSink';
-export { default as SliderStep } from './Step';
-export { default as SliderTwoHandles } from './TwoHandles';
diff --git a/src/legacy/Slider/index.js b/src/legacy/Slider/index.js
deleted file mode 100644
index d4ee8c104d..0000000000
--- a/src/legacy/Slider/index.js
+++ /dev/null
@@ -1,255 +0,0 @@
-/** @component slider */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import SliderPointer from './SliderPointer';
-
-/**
- * @deprecated - Components in the legacy folder (/src/legacy) are deprecated. Please use a component from the components folder (/src/components) instead. Legacy components may not follow accessibility standards.
- **/
-class Slider extends React.Component {
- constructor(props) {
- super(props);
-
- this.state = {
- sliderLow: props.value.low || props.min,
- sliderHigh: props.value.high || props.value,
- scale: this.getScale(),
- selectionWidth: null,
- };
- }
-
- componentDidMount() {
- const { min, max } = this.props;
- const { scale } = this.state;
-
- this.getSelectionWidth();
- this.setScalePos(scale, min, max);
- }
-
- setScalePos = (scale, min, max) => {
- this.ticksContainer &&
- this.ticksContainer.childNodes.forEach((child, idx) => {
- const leftValue = `${((scale[idx] - min) / max) * 100}%`;
- child.style.left = `calc(${leftValue} - ${child.offsetWidth / 2}px)`;
- });
- };
-
- getScale = () => {
- const { min, max, tick } = this.props;
- if (tick) {
- let value = max;
- let ticksArray = [max];
-
- while (value > 0 && value - tick >= min) {
- value -= tick;
-
- ticksArray.unshift(Math.abs(Math.round(value / tick) * tick));
- }
-
- return ticksArray;
- } else {
- return [min, max];
- }
- };
-
- getSliderWidth = () => {
- return this.sliderBar.getBoundingClientRect().width;
- };
-
- getStepWidth = () => {
- const maxValue = this.props.max - this.props.min;
- const maxWidth = this.getSliderWidth();
-
- return (this.props.step / maxValue) * maxWidth;
- };
-
- getSteps = (position) => {
- if (position.isKeyBoard) return 1;
- const diff =
- position.direction === 1 ? position.to - position.from : position.from - position.to;
- if (diff < 0) return 0;
- const steps = diff / this.getStepWidth();
- return steps - Math.floor(steps) >= 0.5 ? Math.ceil(steps) : Math.floor(steps);
- };
-
- getLimit = (pointerKey, direction) => {
- if (pointerKey === 'sliderLow') {
- return this.props.canCross
- ? direction === 1
- ? this.props.max
- : this.props.min
- : direction === 1
- ? this.state.sliderHigh
- : this.props.min;
- } else if (pointerKey === 'sliderHigh') {
- return this.props.canCross
- ? direction === 1
- ? this.props.max
- : this.props.min
- : direction === 1
- ? this.props.max
- : this.state.sliderLow;
- }
- };
-
- returnCurrentValues = () => {
- this.getSelectionWidth();
-
- if (this.props.onChange) {
- return this.props.onChange(
- typeof this.props.value === 'object'
- ? {
- low: Math.min(this.state.sliderHigh, this.state.sliderLow),
- high: Math.max(this.state.sliderHigh, this.state.sliderLow),
- }
- : this.state.sliderHigh
- );
- }
- };
-
- moveForward = (key, pixelMove, limit) => {
- const newPosition = this.state[key] + pixelMove <= limit ? this.state[key] + pixelMove : limit;
-
- this.setState(
- {
- [key]: newPosition,
- },
- () => this.returnCurrentValues()
- );
- };
-
- moveBack = (key, pixelMove, limit) => {
- const newPosition = this.state[key] - pixelMove >= limit ? this.state[key] - pixelMove : limit;
-
- this.setState(
- {
- [key]: newPosition,
- },
- () => this.returnCurrentValues()
- );
- };
-
- onSliderMove = (key, position) => {
- if (this.props.disabled) return;
- const limit = this.getLimit(key, position.direction);
- const pixelMove = this.getSteps(position) * this.props.step;
-
- position.direction === 1
- ? this.moveForward(key, pixelMove, limit)
- : this.moveBack(key, pixelMove, limit);
- };
-
- getSelectionWidth = () => {
- const baseValue = Number.isInteger(this.state.sliderLow)
- ? this.state.sliderLow
- : this.props.min;
-
- this.setState({
- selectionWidth: {
- width: `${(Math.abs(this.state.sliderHigh - baseValue) / this.props.max) * 100}%`,
- left: `${
- ((Math.min(baseValue, this.state.sliderHigh) - this.props.min) / this.props.max) * 100
- }%`,
- },
- });
- };
-
- render() {
- const { value, disabled, className, max, min, translateFn } = this.props;
- const { sliderHigh, sliderLow, scale, selectionWidth } = this.state;
-
- const renderTicks = () => {
- const ticks = scale.map((tickValue, idx) => {
- const tickLabel = translateFn ? translateFn(tickValue) : tickValue;
- return (
-
- {tickLabel}
-
- );
- });
- return
(this.ticksContainer = ref)}>{ticks}
;
- };
-
- return (
-
- (this.sliderBar = ref)} />
-
- {Number.isInteger(value.low) && (
- this.onSliderMove('sliderLow', b)}
- />
- )}
- this.onSliderMove('sliderHigh', b)}
- />
- {renderTicks()}
-
- );
- }
-}
-
-Slider.propTypes = {
- /** @prop Determines if minimum pointer can cross over maximum pointer | false */
- canCross: PropTypes.bool,
- /** @prop Optional CSS class string | '' */
- className: PropTypes.string,
- /** @prop Set the attribute disabled to Slider | false */
- disabled: PropTypes.bool,
- /** @prop Set the initial maximum value */
- max: PropTypes.number.isRequired,
- /** @prop Set the initial minimum value | 0 */
- min: PropTypes.number,
- /** @prop Callback function invoked by user when change a pointer position | null */
- onChange: PropTypes.func,
- /** @prop Set visual step measurement | 1 */
- step: PropTypes.number,
- /** @prop Set increment of x-axis labels | 0 */
- tick: PropTypes.number,
- /** @prop Function to compute layout of Slider | null */
- translateFn: PropTypes.func,
- /** @prop Set either maximum pointer value or a combination of high and low pointer values | 0 */
- value: PropTypes.oneOfType([
- PropTypes.shape({
- high: PropTypes.number.isRequired,
- low: PropTypes.number.isRequired,
- }),
- PropTypes.number,
- ]),
-};
-
-Slider.defaultProps = {
- canCross: false,
- className: '',
- disabled: false,
- min: 0,
- onChange: null,
- step: 1,
- tick: 0,
- translateFn: null,
- value: 0,
-};
-
-Slider.displayName = 'Slider';
-
-export default Slider;
diff --git a/src/legacy/Slider/tests/index.spec.js b/src/legacy/Slider/tests/index.spec.js
deleted file mode 100644
index f2132e5139..0000000000
--- a/src/legacy/Slider/tests/index.spec.js
+++ /dev/null
@@ -1,170 +0,0 @@
-import React from 'react';
-import { shallow, mount } from 'enzyme';
-import { Slider } from '@momentum-ui/react-collaboration';
-
-describe('tests for
', () => {
- it('should match SnapShot', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 20,
- high: 40,
- },
- };
- const container = mount(
);
-
- expect(container).toMatchSnapshot();
- });
-
- it('should render Slider properly', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 20,
- high: 40,
- },
- };
- const container = mount(
);
- container.update();
-
- expect(container.find('.md-slider__pointer').length).toEqual(2);
- expect(container.find('.md-slider__bar').length).toEqual(1);
- expect(container.find('.md-slider__selection').length).toEqual(1);
- expect(container.state().sliderHigh).toEqual(40);
- expect(container.state().sliderLow).toEqual(20);
- });
-
- it('when slider moves and attempts to cross over', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 10,
- high: 40,
- },
- onChange: jest.fn(),
- canCross: true,
- };
-
- const container = shallow(
);
- container.instance().getSliderWidth = () => 100;
- container.instance().onSliderMove('sliderLow', {
- from: 10,
- to: 70,
- direction: 1,
- });
- expect(container.state().sliderLow).toEqual(70);
- expect(container.state().sliderHigh).toEqual(40);
- expect(props.onChange).toHaveBeenCalledWith({ low: 40, high: 70 });
- });
-
- it('when slider moves and does not cross over', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 10,
- high: 40,
- },
- onChange: jest.fn(),
- };
- const container = shallow(
);
- container.instance().getSliderWidth = () => 100;
- container.instance().onSliderMove('sliderLow', {
- from: 10,
- to: 70,
- direction: 1,
- });
- expect(container.state().sliderLow).toEqual(40);
- expect(container.state().sliderHigh).toEqual(40);
- expect(props.onChange).toHaveBeenCalledWith({ low: 40, high: 40 });
- });
-
- it('when slider stops at boundaries', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 10,
- high: 40,
- },
- onChange: jest.fn(),
- };
- const container = shallow(
);
- container.instance().getSliderWidth = () => 100;
-
- // moving in forward direction
- container.instance().onSliderMove('sliderHigh', {
- from: 40,
- to: 110,
- direction: 1,
- });
- expect(container.state().sliderHigh).toEqual(100);
- expect(props.onChange).toHaveBeenCalledWith({ low: 10, high: 100 });
-
- // moving in backward direction
- container.instance().onSliderMove('sliderLow', {
- from: 10,
- to: -20,
- direction: -1,
- });
- expect(container.state().sliderLow).toEqual(0);
- expect(props.onChange).toHaveBeenCalledWith({ low: 0, high: 100 });
- });
-
- it('on keyboard events', () => {
- const props = {
- min: 0,
- max: 100,
- value: {
- low: 10,
- high: 40,
- },
- onChange: jest.fn(),
- };
-
- const container = mount(
);
- container.instance().getSliderWidth = () => 100;
-
- // left
- container.find('.md-slider__pointer').at(1).simulate('keydown', { keyCode: 37 });
- expect(container.state().sliderHigh).toEqual(39);
-
- // right
- container.find('.md-slider__pointer').at(1).simulate('keydown', { keyCode: 39 });
- expect(container.state().sliderHigh).toEqual(40);
-
- // up
- container.find('.md-slider__pointer').at(1).simulate('keydown', { keyCode: 38 });
- expect(container.state().sliderHigh).toEqual(41);
-
- // down
- container.find('.md-slider__pointer').at(1).simulate('keydown', { keyCode: 40 });
- expect(container.state().sliderHigh).toEqual(40);
- });
-
- it('when only one sliderPointer is present', () => {
- const props = {
- min: 20,
- max: 100,
- value: 40,
- onChange: jest.fn(),
- };
- const container = mount(
);
- container.instance().getSliderWidth = () => 100;
- expect(container.find('.md-slider__pointer').length).toEqual(1);
- expect(container.find('.md-slider__bar').length).toEqual(1);
- expect(container.find('.md-slider__selection').length).toEqual(1);
-
- expect(container.state().sliderHigh).toEqual(40);
- expect(container.state().sliderLow).toEqual(20);
-
- // left
- container.find('.md-slider__pointer').at(0).simulate('keydown', { keyCode: 37 });
- expect(container.state().sliderHigh).toEqual(39);
-
- expect(props.onChange).toHaveBeenCalledWith(39);
- });
-});
diff --git a/src/legacy/Slider/tests/index.spec.js.snap b/src/legacy/Slider/tests/index.spec.js.snap
deleted file mode 100644
index ca83ed542d..0000000000
--- a/src/legacy/Slider/tests/index.spec.js.snap
+++ /dev/null
@@ -1,94 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`tests for
should match SnapShot 1`] = `
-
-
-
-
-
-
-
-
-
-
-
-
- 0
-
-
- 100
-
-
-
-
-`;
diff --git a/src/legacy/SocialList/examples/Default.js b/src/legacy/SocialList/examples/Default.js
deleted file mode 100644
index 0fe33cbbf6..0000000000
--- a/src/legacy/SocialList/examples/Default.js
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from 'react';
-import { List, ListItem, SocialList } from '@momentum-ui/react-collaboration';
-
-export default class SocialListDefault extends React.PureComponent {
- render() {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
- }
-}
diff --git a/src/legacy/SocialList/examples/KitchenSink.js b/src/legacy/SocialList/examples/KitchenSink.js
deleted file mode 100644
index 641a154df6..0000000000
--- a/src/legacy/SocialList/examples/KitchenSink.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import React from 'react';
-import { SocialListDefault } from './index';
-
-export default class SocialListKitchenSink extends React.Component {
- render() {
- return (
-
-
-
- );
- }
-}
diff --git a/src/legacy/SocialList/examples/KitchenSink.stories.tsx b/src/legacy/SocialList/examples/KitchenSink.stories.tsx
deleted file mode 100644
index 721f401045..0000000000
--- a/src/legacy/SocialList/examples/KitchenSink.stories.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import LegacyKitchenSink from './KitchenSink';
-import React from 'react';
-
-export default {
- title: 'Legacy/SocialList',
- component: LegacyKitchenSink,
-};
-
-// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
-const Legacy = () =>
;
-
-export { Legacy };
diff --git a/src/legacy/SocialList/examples/index.js b/src/legacy/SocialList/examples/index.js
deleted file mode 100644
index 960898b543..0000000000
--- a/src/legacy/SocialList/examples/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-export { default as SocialListDefault } from './Default';
-export { default as SocialListKitchenSink } from './KitchenSink';
diff --git a/src/legacy/SocialList/tests/index.spec.js b/src/legacy/SocialList/tests/index.spec.js
index 96536cff4a..897b35cf8d 100644
--- a/src/legacy/SocialList/tests/index.spec.js
+++ b/src/legacy/SocialList/tests/index.spec.js
@@ -1,6 +1,6 @@
import React from 'react';
import { shallow, mount } from 'enzyme';
-import { SocialList } from '@momentum-ui/react-collaboration';
+import SocialList from '..';
describe('
', () => {
it('should render a SocialList', () => {
diff --git a/src/legacy/SpaceListMeeting/index.js b/src/legacy/SpaceListMeeting/index.js
deleted file mode 100644
index d3fae4d32e..0000000000
--- a/src/legacy/SpaceListMeeting/index.js
+++ /dev/null
@@ -1,231 +0,0 @@
-/** @component list-item */
-
-import React from 'react';
-import PropTypes from 'prop-types';
-import {
- Avatar,
- Icon,
- List,
- ListItem,
- ListItemSection,
- Button,
- Popover,
-} from '@momentum-ui/react-collaboration';
-import omit from 'lodash/omit';
-import uniqueId from 'lodash/uniqueId';
-
-/**
- * @deprecated - Components in the legacy folder (/src/legacy) are deprecated. Please use a component from the components folder (/src/components) instead. Legacy components may not follow accessibility standards.
- **/
-class SpaceListMeeting extends React.PureComponent {
- state = {
- id: this.props.id || uniqueId('md-space-list-meeting-'),
- };
-
- handleButtonClick = (e) => {
- const { buttonOnClick } = this.props;
-
- buttonOnClick && buttonOnClick(e);
-
- e.stopPropagation();
- };
-
- render() {
- const {
- attendees,
- buttonAriaLabel,
- buttonClassName,
- buttonLabel,
- buttonTabIndex,
- childrenLeft,
- childrenRight,
- className,
- eventOverlayProps,
- header,
- isMessagingOnlyShare,
- isBold,
- meetingType,
- subheader,
- theme,
- title,
- ...props
- } = this.props;
- const { id } = this.state;
-
- const otherProps = omit({ ...props }, ['buttonOnClick']);
-
- const getTitle = !title && typeof header === 'string' ? header : title;
-
- const getLeftSection = () => {
- switch (meetingType) {
- case 'group':
- return (
-
- );
- case 'number':
- return
;
- case 'device':
- return (
-
}
- alt={getTitle}
- />
- );
- default:
- return
;
- }
- };
-
- const getPopoverContent = (
-
- {attendees.map((ele, idx) => (
-
-
- {ele.node ? (
- ele.node
- ) : (
-
- )}
-
-
- {ele.title}
-
-
- ))}
-
- );
-
- const children = [
-
- {childrenLeft || getLeftSection()}
- ,
-
- {header}
- {subheader}
- ,
-
- {childrenRight ||
- (attendees.length > 0 && (
-
-
- {isMessagingOnlyShare ? null : attendees.length}
- {isMessagingOnlyShare ? : }
-
-
- ))}
- {buttonLabel && (
-
- )}
- ,
- ];
-
- return (
-
- {children}
-
- );
- }
-}
-
-SpaceListMeeting.propTypes = {
- /** @prop Array of Attendee's Data | [] */
- attendees: PropTypes.arrayOf(
- PropTypes.shape({
- title: PropTypes.string.isRequired,
- alt: PropTypes.string,
- src: PropTypes.string,
- node: PropTypes.element,
- })
- ),
- /** @prop Aria label string for button | buttonLabel */
- buttonAriaLabel: PropTypes.string,
- /** @prop Optionsl HTML Class string for button | '' */
- buttonClassName: PropTypes.string,
- /** @prop Label string for button | '' */
- buttonLabel: PropTypes.string,
- /** @prop Callback function invoked when user clicks on button | null */
- buttonOnClick: PropTypes.func,
- /** @prop Tab index for button | '0' */
- buttonTabIndex: PropTypes.string,
- /** @prop Children nodes to render for left section | null */
- childrenLeft: PropTypes.node,
- /** @prop Children nodes to render for right section | null */
- childrenRight: PropTypes.node,
- /** @prop Optional HTML Class string | '' */
- className: PropTypes.string,
- /** @prop Event Overlay props to be overwritten | null */
- eventOverlayProps: PropTypes.shape({}),
- /** @prop ListItem header text | '' */
- header: PropTypes.node.isRequired,
- /** @prop HTML ID for SpaceListMeeting | '' */
- id: PropTypes.string,
- /** @prop Determines if SpaceListMeeting is Bolded | false */
- isBold: PropTypes.bool,
- /** @prop Determines if SpaceListMeeting is IM share only | false */
- isMessagingOnlyShare: PropTypes.bool,
- /** @prop Set the SpaceListMeeting type | '' */
- meetingType: PropTypes.oneOf(['', 'group', 'number', 'device']),
- /** @prop SpaceListMeeting sub header node | '' */
- subheader: PropTypes.node,
- /** @prop SpaceListMeeting color theme */
- theme: PropTypes.string,
- /** @prop SpaceListMeeting title | '' */
- title: PropTypes.string,
-};
-
-SpaceListMeeting.defaultProps = {
- attendees: [],
- buttonAriaLabel: null,
- buttonClassName: '',
- buttonLabel: '',
- buttonOnClick: null,
- buttonTabIndex: '0',
- childrenLeft: null,
- childrenRight: null,
- className: '',
- id: '',
- isBold: false,
- isMessagingOnlyShare: false,
- eventOverlayProps: null,
- meetingType: '',
- subheader: '',
- theme: '',
- title: '',
-};
-
-SpaceListMeeting.displayName = 'SpaceListMeeting';
-
-export default SpaceListMeeting;
diff --git a/src/legacy/SpaceListMeeting/tests/index.spec.js b/src/legacy/SpaceListMeeting/tests/index.spec.js
deleted file mode 100644
index 357ecb7ffe..0000000000
--- a/src/legacy/SpaceListMeeting/tests/index.spec.js
+++ /dev/null
@@ -1,199 +0,0 @@
-import React from 'react';
-import { mount } from 'enzyme';
-import { SpaceListMeeting } from '@momentum-ui/react-collaboration';
-
-describe('tests for
', () => {
- beforeAll(() => {
- jest.clearAllTimers();
- jest.useFakeTimers();
- });
-
- it('should match SnapShot', () => {
- const container = mount(
);
-
- expect(container).toMatchSnapshot();
- });
-
- it('should render childrenLeft', () => {
- const container = mount(
-
Test } />
- );
-
- expect(container.find('.test').length).toEqual(1);
- });
-
- it('should render childrenRight', () => {
- const container = mount(
-