fix(rn,build) fix use of "bare" relative path
The Metro bundler gets confused and the result of such import statements is `undefined`.
This commit is contained in:
parent
f4bd40dcfe
commit
8f1a7d52d2
|
@ -46,6 +46,7 @@ import {
|
||||||
localParticipantLeft,
|
localParticipantLeft,
|
||||||
participantLeft,
|
participantLeft,
|
||||||
participantUpdated,
|
participantUpdated,
|
||||||
|
raiseHand,
|
||||||
raiseHandUpdateQueue,
|
raiseHandUpdateQueue,
|
||||||
setLoadableAvatarUrl
|
setLoadableAvatarUrl
|
||||||
} from './actions';
|
} from './actions';
|
||||||
|
@ -64,12 +65,11 @@ import {
|
||||||
getParticipantDisplayName,
|
getParticipantDisplayName,
|
||||||
getRaiseHandsQueue,
|
getRaiseHandsQueue,
|
||||||
getRemoteParticipants,
|
getRemoteParticipants,
|
||||||
|
hasRaisedHand,
|
||||||
isLocalParticipantModerator
|
isLocalParticipantModerator
|
||||||
} from './functions';
|
} from './functions';
|
||||||
import { PARTICIPANT_JOINED_FILE, PARTICIPANT_LEFT_FILE } from './sounds';
|
import { PARTICIPANT_JOINED_FILE, PARTICIPANT_LEFT_FILE } from './sounds';
|
||||||
|
|
||||||
import { hasRaisedHand, raiseHand } from '.';
|
|
||||||
|
|
||||||
declare var APP: Object;
|
declare var APP: Object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -6,10 +6,10 @@ import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { shouldShowResults } from '../../functions';
|
import { shouldShowResults } from '../../functions';
|
||||||
|
|
||||||
|
import PollAnswer from './PollAnswer';
|
||||||
|
import PollResults from './PollResults';
|
||||||
import { chatStyles } from './styles';
|
import { chatStyles } from './styles';
|
||||||
|
|
||||||
import { PollAnswer, PollResults } from '.';
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -4,13 +4,11 @@ import { FlatList } from 'react-native';
|
||||||
import { Text } from 'react-native-paper';
|
import { Text } from 'react-native-paper';
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
|
import PollItem from './PollItem';
|
||||||
import { chatStyles } from './styles';
|
import { chatStyles } from './styles';
|
||||||
|
|
||||||
import { PollItem } from '.';
|
|
||||||
|
|
||||||
|
|
||||||
const PollsList = () => {
|
const PollsList = () => {
|
||||||
|
|
||||||
const polls = useSelector(state => state['features/polls'].polls);
|
const polls = useSelector(state => state['features/polls'].polls);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const listPolls = Object.keys(polls);
|
const listPolls = Object.keys(polls);
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { useSelector } from 'react-redux';
|
||||||
|
|
||||||
import { Icon, IconChatUnread } from '../../../base/icons';
|
import { Icon, IconChatUnread } from '../../../base/icons';
|
||||||
|
|
||||||
import { PollItem } from '.';
|
import PollItem from './PollItem';
|
||||||
|
|
||||||
const PollsList = () => {
|
const PollsList = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
|
@ -5,12 +5,11 @@ import React from 'react';
|
||||||
import AbstractPollsPane from '../AbstractPollsPane';
|
import AbstractPollsPane from '../AbstractPollsPane';
|
||||||
import type { AbstractProps } from '../AbstractPollsPane';
|
import type { AbstractProps } from '../AbstractPollsPane';
|
||||||
|
|
||||||
|
import PollCreate from './PollCreate';
|
||||||
import PollsList from './PollsList';
|
import PollsList from './PollsList';
|
||||||
|
|
||||||
import { PollCreate } from '.';
|
|
||||||
|
|
||||||
const PollsPane = (props: AbstractProps) => {
|
const PollsPane = (props: AbstractProps) => {
|
||||||
|
|
||||||
const { createMode, onCreate, setCreateMode, t } = props;
|
const { createMode, onCreate, setCreateMode, t } = props;
|
||||||
|
|
||||||
return createMode
|
return createMode
|
||||||
|
|
|
@ -10,7 +10,7 @@ import {
|
||||||
} from '../../base/participants';
|
} from '../../base/participants';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||||
|
|
||||||
import { GrantModeratorDialog } from '.';
|
import { GrantModeratorDialog } from './';
|
||||||
|
|
||||||
export type Props = AbstractButtonProps & {
|
export type Props = AbstractButtonProps & {
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { openDialog } from '../../base/dialog';
|
||||||
import { IconCloseCircle } from '../../base/icons';
|
import { IconCloseCircle } from '../../base/icons';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||||
|
|
||||||
import { KickRemoteParticipantDialog } from '.';
|
import { KickRemoteParticipantDialog } from './';
|
||||||
|
|
||||||
export type Props = AbstractButtonProps & {
|
export type Props = AbstractButtonProps & {
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { openDialog } from '../../base/dialog';
|
||||||
import { IconMuteEveryone } from '../../base/icons';
|
import { IconMuteEveryone } from '../../base/icons';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||||
|
|
||||||
import { MuteEveryoneDialog } from '.';
|
import { MuteEveryoneDialog } from './';
|
||||||
|
|
||||||
export type Props = AbstractButtonProps & {
|
export type Props = AbstractButtonProps & {
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { openDialog } from '../../base/dialog';
|
||||||
import { IconMuteVideoEveryone } from '../../base/icons';
|
import { IconMuteVideoEveryone } from '../../base/icons';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||||
|
|
||||||
import { MuteEveryonesVideoDialog } from '.';
|
import { MuteEveryonesVideoDialog } from './';
|
||||||
|
|
||||||
export type Props = AbstractButtonProps & {
|
export type Props = AbstractButtonProps & {
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { MEDIA_TYPE } from '../../base/media';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
|
||||||
import { isRemoteTrackMuted } from '../../base/tracks';
|
import { isRemoteTrackMuted } from '../../base/tracks';
|
||||||
|
|
||||||
import { MuteRemoteParticipantsVideoDialog } from '.';
|
import { MuteRemoteParticipantsVideoDialog } from './';
|
||||||
|
|
||||||
export type Props = AbstractButtonProps & {
|
export type Props = AbstractButtonProps & {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue