fixed all imports to align to linter rules
This commit is contained in:
parent
5c502a0767
commit
2691a2ceec
|
|
@ -4,7 +4,7 @@ import { useCallState } from '@dailyjs/shared/contexts/CallProvider';
|
||||||
import { useCallUI } from '@dailyjs/shared/hooks/useCallUI';
|
import { useCallUI } from '@dailyjs/shared/hooks/useCallUI';
|
||||||
|
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Room } from '../Call/Room';
|
import Room from '../Call/Room';
|
||||||
import { Asides } from './Asides';
|
import { Asides } from './Asides';
|
||||||
import { Modals } from './Modals';
|
import { Modals } from './Modals';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,15 @@ import { Container } from './Container';
|
||||||
import { Header } from './Header';
|
import { Header } from './Header';
|
||||||
import { VideoGrid } from './VideoGrid';
|
import { VideoGrid } from './VideoGrid';
|
||||||
|
|
||||||
export const Room = () => (
|
export function Room() {
|
||||||
<Container>
|
return (
|
||||||
<Header />
|
<Container>
|
||||||
<VideoContainer>
|
<Header />
|
||||||
<VideoGrid />
|
<VideoContainer>
|
||||||
</VideoContainer>
|
<VideoGrid />
|
||||||
</Container>
|
</VideoContainer>
|
||||||
);
|
</Container>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
export default Room;
|
export default Room;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Button } from '@dailyjs/shared/components/Button';
|
import Button from '@dailyjs/shared/components/Button';
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardBody,
|
CardBody,
|
||||||
|
|
@ -8,7 +8,7 @@ import {
|
||||||
} from '@dailyjs/shared/components/Card';
|
} from '@dailyjs/shared/components/Card';
|
||||||
import Field from '@dailyjs/shared/components/Field';
|
import Field from '@dailyjs/shared/components/Field';
|
||||||
import { TextInput, BooleanInput } from '@dailyjs/shared/components/Input';
|
import { TextInput, BooleanInput } from '@dailyjs/shared/components/Input';
|
||||||
import { Well } from '@dailyjs/shared/components/Well';
|
import Well from '@dailyjs/shared/components/Well';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,9 @@ import { WaitingRoomProvider } from '@dailyjs/shared/contexts/WaitingRoomProvide
|
||||||
import getDemoProps from '@dailyjs/shared/lib/demoProps';
|
import getDemoProps from '@dailyjs/shared/lib/demoProps';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import App from '../components/App';
|
import App from '../components/App';
|
||||||
import { CreatingRoom } from '../components/Prejoin/CreatingRoom';
|
import CreatingRoom from '../components/Prejoin/CreatingRoom';
|
||||||
import { Intro, NotConfigured } from '../components/Prejoin/Intro';
|
import Intro from '../components/Prejoin/Intro';
|
||||||
|
import NotConfigured from '../components/Prejoin/NotConfigured';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Index page
|
* Index page
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { Button } from '@dailyjs/shared/components/Button';
|
import Button from '@dailyjs/shared/components/Button';
|
||||||
import { CardBody } from '@dailyjs/shared/components/Card';
|
import { CardBody } from '@dailyjs/shared/components/Card';
|
||||||
import Modal from '@dailyjs/shared/components/Modal';
|
import Modal from '@dailyjs/shared/components/Modal';
|
||||||
import Well from '@dailyjs/shared/components/Well';
|
import Well from '@dailyjs/shared/components/Well';
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { ReactComponent as IconClose } from '../../icons/close-sm.svg';
|
import { ReactComponent as IconClose } from '../../icons/close-sm.svg';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
|
|
||||||
export const ASIDE_WIDTH = 380;
|
export const ASIDE_WIDTH = 380;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Aside from '@dailyjs/shared/components/Aside';
|
import { Aside } from '@dailyjs/shared/components/Aside';
|
||||||
import { ReactComponent as IconCamOff } from '@dailyjs/shared/icons/camera-off-sm.svg';
|
import { ReactComponent as IconCamOff } from '@dailyjs/shared/icons/camera-off-sm.svg';
|
||||||
import { ReactComponent as IconCamOn } from '@dailyjs/shared/icons/camera-on-sm.svg';
|
import { ReactComponent as IconCamOn } from '@dailyjs/shared/icons/camera-on-sm.svg';
|
||||||
import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-sm.svg';
|
import { ReactComponent as IconMicOff } from '@dailyjs/shared/icons/mic-off-sm.svg';
|
||||||
|
|
@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
||||||
import { useCallState } from '../../contexts/CallProvider';
|
import { useCallState } from '../../contexts/CallProvider';
|
||||||
import { useParticipants } from '../../contexts/ParticipantsProvider';
|
import { useParticipants } from '../../contexts/ParticipantsProvider';
|
||||||
import { useUIState } from '../../contexts/UIStateProvider';
|
import { useUIState } from '../../contexts/UIStateProvider';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
|
|
||||||
export const PEOPLE_ASIDE = 'people';
|
export const PEOPLE_ASIDE = 'people';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
export { Aside as default } from './Aside';
|
|
||||||
export { Aside } from './Aside';
|
export { Aside } from './Aside';
|
||||||
export { PeopleAside } from './PeopleAside';
|
export { PeopleAside } from './PeopleAside';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
export { Audio as default } from './Audio';
|
|
||||||
export { Audio } from './Audio';
|
export { Audio } from './Audio';
|
||||||
|
export { AudioTrack } from './AudioTrack';
|
||||||
|
export { CombinedAudioTrack } from './CombinedAudioTrack';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { Button } from './Button';
|
|
||||||
export { Button as default } from './Button';
|
export { Button as default } from './Button';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider';
|
import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider';
|
||||||
import { Field } from '../Field';
|
import Field from '../Field';
|
||||||
import { SelectInput } from '../Input';
|
import { SelectInput } from '../Input';
|
||||||
|
|
||||||
export const DeviceSelect = () => {
|
export const DeviceSelect = () => {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { DeviceSelect as default } from './DeviceSelect';
|
export { DeviceSelect as default } from './DeviceSelect';
|
||||||
export { DeviceSelect } from './DeviceSelect';
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Modal from '@dailyjs/shared/components/Modal';
|
import Modal from '@dailyjs/shared/components/Modal';
|
||||||
import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider';
|
import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
import { DeviceSelect } from '../DeviceSelect';
|
import DeviceSelect from '../DeviceSelect';
|
||||||
|
|
||||||
export const DEVICE_MODAL = 'device';
|
export const DEVICE_MODAL = 'device';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
export { DeviceSelectModal as default } from './DeviceSelectModal';
|
|
||||||
export { DeviceSelectModal } from './DeviceSelectModal';
|
export { DeviceSelectModal } from './DeviceSelectModal';
|
||||||
export { DEVICE_MODAL } from './DeviceSelectModal';
|
export { DEVICE_MODAL } from './DeviceSelectModal';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { Field as default } from './Field';
|
export { Field as default } from './Field';
|
||||||
export { Field } from './Field';
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ import Button from '@dailyjs/shared/components/Button';
|
||||||
import { DEVICE_MODAL } from '@dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal';
|
import { DEVICE_MODAL } from '@dailyjs/shared/components/DeviceSelectModal/DeviceSelectModal';
|
||||||
import { TextInput } from '@dailyjs/shared/components/Input';
|
import { TextInput } from '@dailyjs/shared/components/Input';
|
||||||
import Loader from '@dailyjs/shared/components/Loader';
|
import Loader from '@dailyjs/shared/components/Loader';
|
||||||
import { MuteButton } from '@dailyjs/shared/components/MuteButtons';
|
import MuteButton from '@dailyjs/shared/components/MuteButton';
|
||||||
import { Tile } from '@dailyjs/shared/components/Tile';
|
import Tile from '@dailyjs/shared/components/Tile';
|
||||||
import { ACCESS_STATE_LOBBY } from '@dailyjs/shared/constants';
|
import { ACCESS_STATE_LOBBY } from '@dailyjs/shared/constants';
|
||||||
import { useCallState } from '@dailyjs/shared/contexts/CallProvider';
|
import { useCallState } from '@dailyjs/shared/contexts/CallProvider';
|
||||||
import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider';
|
import { useMediaDevices } from '@dailyjs/shared/contexts/MediaDeviceProvider';
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { TextInput as default } from './Input';
|
|
||||||
export { TextInput, BooleanInput, SelectInput } from './Input';
|
export { TextInput, BooleanInput, SelectInput } from './Input';
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import classNames from 'classnames';
|
||||||
import noScroll from 'no-scroll';
|
import noScroll from 'no-scroll';
|
||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
import { ReactComponent as IconClose } from '../../icons/close-sm.svg';
|
import { ReactComponent as IconClose } from '../../icons/close-sm.svg';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
import { Card, CardBody, CardFooter, CardHeader } from '../Card';
|
import { Card, CardBody, CardFooter, CardHeader } from '../Card';
|
||||||
|
|
||||||
const transitionMs = 350;
|
const transitionMs = 350;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import { ReactComponent as IconMicOn } from '@dailyjs/shared/icons/mic-on-md.svg
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { useCallState } from '../../contexts/CallProvider';
|
import { useCallState } from '../../contexts/CallProvider';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
|
|
||||||
export const MuteButton = ({ isMuted, mic = false, className, ...props }) => {
|
export const MuteButton = ({ isMuted, mic = false, className, ...props }) => {
|
||||||
const { callObject } = useCallState();
|
const { callObject } = useCallState();
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { MuteButton as default } from './MuteButton';
|
export { MuteButton as default } from './MuteButton';
|
||||||
export { MuteButton } from './MuteButton';
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { ParticipantBar as default } from './ParticipantBar';
|
export { ParticipantBar as default } from './ParticipantBar';
|
||||||
export { ParticipantBar } from './ParticipantBar';
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { ReactComponent as IconMicMute } from '@dailyjs/shared/icons/mic-off-sm.
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { DEFAULT_ASPECT_RATIO } from '../../constants';
|
import { DEFAULT_ASPECT_RATIO } from '../../constants';
|
||||||
import { Video } from './Video';
|
import Video from './Video';
|
||||||
import { ReactComponent as Avatar } from './avatar.svg';
|
import { ReactComponent as Avatar } from './avatar.svg';
|
||||||
|
|
||||||
const SM_TILE_MAX_WIDTH = 300;
|
const SM_TILE_MAX_WIDTH = 300;
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
export { Video as default } from './Video';
|
|
||||||
export { Video } from './Video';
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export { Tile as default } from './Tile';
|
export { Tile as default } from './Tile';
|
||||||
export { Tile } from './Tile';
|
export { Video } from './Video';
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
export { Tray as default } from './Tray';
|
|
||||||
export { Tray, TrayButton } from './Tray';
|
export { Tray, TrayButton } from './Tray';
|
||||||
export { BasicTray } from './BasicTray';
|
export { BasicTray } from './BasicTray';
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export { VideoContainer as default } from './VideoContainer';
|
||||||
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import Modal from '@dailyjs/shared/components/Modal';
|
import Modal from '@dailyjs/shared/components/Modal';
|
||||||
import { useWaitingRoom } from '@dailyjs/shared/contexts/WaitingRoomProvider';
|
import { useWaitingRoom } from '@dailyjs/shared/contexts/WaitingRoomProvider';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Button } from '../Button';
|
import Button from '../Button';
|
||||||
import { WaitingParticipantRow } from './WaitingParticipantRow';
|
import { WaitingParticipantRow } from './WaitingParticipantRow';
|
||||||
|
|
||||||
export const WaitingRoomModal = ({ onClose }) => {
|
export const WaitingRoomModal = ({ onClose }) => {
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1 @@
|
||||||
export { Well as default } from './Well';
|
export { Well as default } from './Well';
|
||||||
export { Well } from './Well';
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import Aside from '@dailyjs/shared/components/Aside';
|
import { Aside } from '@dailyjs/shared/components/Aside';
|
||||||
import { Button } from '@dailyjs/shared/components/Button';
|
import Button from '@dailyjs/shared/components/Button';
|
||||||
import { TextInput } from '@dailyjs/shared/components/Input';
|
import { TextInput } from '@dailyjs/shared/components/Input';
|
||||||
import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider';
|
import { useUIState } from '@dailyjs/shared/contexts/UIStateProvider';
|
||||||
import { useChat } from '../../contexts/ChatProvider';
|
import { useChat } from '../../contexts/ChatProvider';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue