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,
|
||||
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;
|
||||
|
||||
/**
|
||||
|
|
|
@ -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 = {
|
||||
|
||||
/**
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 & {
|
||||
|
||||
|
|
|
@ -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 & {
|
||||
|
||||
|
|
|
@ -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 & {
|
||||
|
||||
|
|
|
@ -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 & {
|
||||
|
||||
|
|
|
@ -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 & {
|
||||
|
||||
|
|
Loading…
Reference in New Issue