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:
Saúl Ibarra Corretgé 2022-01-20 11:59:50 +01:00 committed by Saúl Ibarra Corretgé
parent f4bd40dcfe
commit 8f1a7d52d2
10 changed files with 12 additions and 15 deletions

View File

@ -46,6 +46,7 @@ import {
localParticipantLeft,
participantLeft,
participantUpdated,
raiseHand,
raiseHandUpdateQueue,
setLoadableAvatarUrl
} from './actions';
@ -64,12 +65,11 @@ import {
getParticipantDisplayName,
getRaiseHandsQueue,
getRemoteParticipants,
hasRaisedHand,
isLocalParticipantModerator
} from './functions';
import { PARTICIPANT_JOINED_FILE, PARTICIPANT_LEFT_FILE } from './sounds';
import { hasRaisedHand, raiseHand } from '.';
declare var APP: Object;
/**

View File

@ -6,10 +6,10 @@ import { useSelector } from 'react-redux';
import { shouldShowResults } from '../../functions';
import PollAnswer from './PollAnswer';
import PollResults from './PollResults';
import { chatStyles } from './styles';
import { PollAnswer, PollResults } from '.';
type Props = {
/**

View File

@ -4,13 +4,11 @@ import { FlatList } from 'react-native';
import { Text } from 'react-native-paper';
import { useSelector } from 'react-redux';
import PollItem from './PollItem';
import { chatStyles } from './styles';
import { PollItem } from '.';
const PollsList = () => {
const polls = useSelector(state => state['features/polls'].polls);
const { t } = useTranslation();
const listPolls = Object.keys(polls);

View File

@ -6,7 +6,7 @@ import { useSelector } from 'react-redux';
import { Icon, IconChatUnread } from '../../../base/icons';
import { PollItem } from '.';
import PollItem from './PollItem';
const PollsList = () => {
const { t } = useTranslation();

View File

@ -5,12 +5,11 @@ import React from 'react';
import AbstractPollsPane from '../AbstractPollsPane';
import type { AbstractProps } from '../AbstractPollsPane';
import PollCreate from './PollCreate';
import PollsList from './PollsList';
import { PollCreate } from '.';
const PollsPane = (props: AbstractProps) => {
const { createMode, onCreate, setCreateMode, t } = props;
return createMode

View File

@ -10,7 +10,7 @@ import {
} from '../../base/participants';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { GrantModeratorDialog } from '.';
import { GrantModeratorDialog } from './';
export type Props = AbstractButtonProps & {

View File

@ -4,7 +4,7 @@ import { openDialog } from '../../base/dialog';
import { IconCloseCircle } from '../../base/icons';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { KickRemoteParticipantDialog } from '.';
import { KickRemoteParticipantDialog } from './';
export type Props = AbstractButtonProps & {

View File

@ -5,7 +5,7 @@ import { openDialog } from '../../base/dialog';
import { IconMuteEveryone } from '../../base/icons';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { MuteEveryoneDialog } from '.';
import { MuteEveryoneDialog } from './';
export type Props = AbstractButtonProps & {

View File

@ -5,7 +5,7 @@ import { openDialog } from '../../base/dialog';
import { IconMuteVideoEveryone } from '../../base/icons';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { MuteEveryonesVideoDialog } from '.';
import { MuteEveryonesVideoDialog } from './';
export type Props = AbstractButtonProps & {

View File

@ -10,7 +10,7 @@ import { MEDIA_TYPE } from '../../base/media';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { isRemoteTrackMuted } from '../../base/tracks';
import { MuteRemoteParticipantsVideoDialog } from '.';
import { MuteRemoteParticipantsVideoDialog } from './';
export type Props = AbstractButtonProps & {