Renamed CreateRoom component to CreateRoomButton and updated imports
This commit is contained in:
parent
44cddc8c59
commit
97f524773b
|
|
@ -2,7 +2,12 @@ import React, { useState } from 'react';
|
||||||
import Well from '@dailyjs/shared/components/Well';
|
import Well from '@dailyjs/shared/components/Well';
|
||||||
import Button from '@dailyjs/shared/components/Button';
|
import Button from '@dailyjs/shared/components/Button';
|
||||||
|
|
||||||
export function CreateRoom({ isConfigured, isValidRoom, setRoom, setExpiry }) {
|
export function CreateRoomButton({
|
||||||
|
isConfigured,
|
||||||
|
isValidRoom,
|
||||||
|
setRoom,
|
||||||
|
setExpiry,
|
||||||
|
}) {
|
||||||
const [isError, setIsError] = useState(false);
|
const [isError, setIsError] = useState(false);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
CardFooter,
|
CardFooter,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
} from '@dailyjs/shared/components/Card';
|
} from '@dailyjs/shared/components/Card';
|
||||||
import { CreateRoom } from '../components/CreateRoom';
|
import { CreateRoomButton } from './CreateRoomButton';
|
||||||
import Field from '@dailyjs/shared/components/Field';
|
import Field from '@dailyjs/shared/components/Field';
|
||||||
import TextInput from '@dailyjs/shared/components/Input';
|
import TextInput from '@dailyjs/shared/components/Input';
|
||||||
|
|
||||||
|
|
@ -40,7 +40,7 @@ export default function Home({ setRoom, setExpiry, isConfigured }) {
|
||||||
Start demo with a new unique room, or paste in your own room URL
|
Start demo with a new unique room, or paste in your own room URL
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardBody>
|
<CardBody>
|
||||||
<CreateRoom
|
<CreateRoomButton
|
||||||
isConfigured={isConfigured}
|
isConfigured={isConfigured}
|
||||||
isValidRoom={isValidRoom}
|
isValidRoom={isValidRoom}
|
||||||
setRoom={setRoom}
|
setRoom={setRoom}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue