Reorg notifications feature files

pull/4034/head jitsi-meet_3635
Bettenbuk Zoltan 6 years ago committed by Zoltan Bettenbuk
parent f12317dc59
commit 10e951c17c
  1. 2
      react/features/notifications/actionTypes.js
  2. 3
      react/features/notifications/components/index.native.js
  3. 3
      react/features/notifications/components/index.web.js
  4. 7
      react/features/notifications/components/native/Notification.js
  5. 5
      react/features/notifications/components/native/NotificationsContainer.js
  6. 2
      react/features/notifications/components/native/index.js
  7. 6
      react/features/notifications/components/native/styles.js
  8. 6
      react/features/notifications/components/web/Notification.js
  9. 5
      react/features/notifications/components/web/NotificationsContainer.js
  10. 4
      react/features/notifications/components/web/index.js
  11. 2
      react/features/notifications/constants.js
  12. 4
      react/features/notifications/functions.js
  13. 2
      react/features/notifications/index.js
  14. 2
      react/features/notifications/reducer.js

@ -1,3 +1,5 @@
// @flow
/**
* The type of (redux) action which signals that all the stored notifications
* need to be cleared.

@ -0,0 +1,3 @@
// @flow
export * from './native';

@ -0,0 +1,3 @@
// @flow
export * from './web';

@ -3,12 +3,13 @@
import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import { Icon } from '../../base/font-icons';
import { translate } from '../../base/i18n';
import { Icon } from '../../../base/font-icons';
import { translate } from '../../../base/i18n';
import AbstractNotification, {
type Props
} from './AbstractNotification';
} from '../AbstractNotification';
import styles from './styles';
/**

@ -3,12 +3,13 @@
import React from 'react';
import { View } from 'react-native';
import { connect } from '../../base/redux';
import { connect } from '../../../base/redux';
import AbstractNotificationsContainer, {
_abstractMapStateToProps,
type Props as AbstractProps
} from './AbstractNotificationsContainer';
} from '../AbstractNotificationsContainer';
import Notification from './Notification';
import styles from './styles';

@ -1,2 +1,4 @@
// @flow
export { default as Notification } from './Notification';
export { default as NotificationsContainer } from './NotificationsContainer';

@ -1,11 +1,11 @@
// @flow
import { BoxModel, createStyleSheet, ColorPalette } from '../../base/styles';
import { BoxModel, ColorPalette } from '../../../base/styles';
/**
* The styles of the React {@code Components} of the feature notifications.
*/
export default createStyleSheet({
export default {
/**
* The content (left) column of the notification.
@ -58,4 +58,4 @@ export default createStyleSheet({
notificationContent: {
flexDirection: 'column'
}
});
};

@ -7,13 +7,13 @@ import WarningIcon from '@atlaskit/icon/glyph/warning';
import { colors } from '@atlaskit/theme';
import React from 'react';
import { translate } from '../../base/i18n';
import { translate } from '../../../base/i18n';
import { NOTIFICATION_TYPE } from '../constants';
import { NOTIFICATION_TYPE } from '../../constants';
import AbstractNotification, {
type Props
} from './AbstractNotification';
} from '../AbstractNotification';
declare var interfaceConfig: Object;

@ -3,12 +3,13 @@
import { FlagGroup } from '@atlaskit/flag';
import React from 'react';
import { connect } from '../../base/redux';
import { connect } from '../../../base/redux';
import AbstractNotificationsContainer, {
_abstractMapStateToProps as _mapStateToProps,
type Props
} from './AbstractNotificationsContainer';
} from '../AbstractNotificationsContainer';
import Notification from './Notification';
/**

@ -0,0 +1,4 @@
// @flow
export { default as Notification } from './Notification';
export { default as NotificationsContainer } from './NotificationsContainer';

@ -1,3 +1,5 @@
// @flow
/**
* The set of possible notification types.
*

@ -1,3 +1,5 @@
// @flow
import { toState } from '../base/redux';
/**
@ -7,7 +9,7 @@ import { toState } from '../base/redux';
* @param {Object|Function} stateful - The redux store state.
* @returns {boolean}
*/
export function areThereNotifications(stateful) {
export function areThereNotifications(stateful: Object | Function) {
const state = toState(stateful);
const { enabled, notifications } = state['features/notifications'];

@ -1,3 +1,5 @@
// @flow
export * from './actions';
export * from './actionTypes';
export * from './components';

@ -1,3 +1,5 @@
// @flow
import { ReducerRegistry } from '../base/redux';
import {

Loading…
Cancel
Save