Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Update RoomSettingModal.js #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState, useEffect } from 'react';
import { useAlert } from 'react-alert'

import Modal from '../../../components/Modal'
import Button from '../../../components/Button';
import socketSubscriber from '../../../api/socket/socketSubscriber';


Expand Down Expand Up @@ -84,7 +85,10 @@ export const RoomSettingModal = (props) => {
}

return (
<React.Fragment>
<React.Fragment onHide={props.onHide} show={props.show}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change React.Fragment to Modal to use the Modal component instead.

<Modal.Header closeButton>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use self closing tags if there is no content inside the component. <Modal.Header closeButton/>


</Modal.Header>
{
active &&
<div className="roomSettingModal__ctn">
Expand All @@ -101,4 +105,4 @@ export const RoomSettingModal = (props) => {
</React.Fragment>

)
}
}