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 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);
|
||||
|
||||
/**
|
||||
|
|
@ -6,7 +6,7 @@ import {
|
|||
CardFooter,
|
||||
CardHeader,
|
||||
} from '@dailyjs/shared/components/Card';
|
||||
import { CreateRoom } from '../components/CreateRoom';
|
||||
import { CreateRoomButton } from './CreateRoomButton';
|
||||
import Field from '@dailyjs/shared/components/Field';
|
||||
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
|
||||
</CardHeader>
|
||||
<CardBody>
|
||||
<CreateRoom
|
||||
<CreateRoomButton
|
||||
isConfigured={isConfigured}
|
||||
isValidRoom={isValidRoom}
|
||||
setRoom={setRoom}
|
||||
|
|
|
|||
Loading…
Reference in New Issue