Guest User

Untitled

a guest
Mar 25th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. import { useState, useEffect } from "react";
  2. import Row from "react-bootstrap/Row";
  3. import Button from "react-bootstrap/Button";
  4. import Modal from "react-bootstrap/Modal";
  5.  
  6. function PatchNotes() {
  7.   const [ShowModal, setShowModal] = useState(false);
  8.  
  9.   const handleCloseModal = () => setShowModal(false);
  10.   const handleShowModal = () => setShowModal(true);
  11.  
  12.   return (
  13.     <div className="bottomPosition">
  14.       <Row className="mt-2 d-flex justify-content-center">
  15.         <section className="col-lg-auto">
  16.           <Button className="leagueColor" onClick={handleShowModal}>
  17.             Game Details
  18.           </Button>
  19.         </section>
  20.       </Row>
  21.       {/* Modal */}
  22.       <Modal
  23.         centered
  24.         size="lg"
  25.         show={ShowModal}
  26.         onHide={handleCloseModal}
  27.         scrollable
  28.       >
  29.         <Modal.Header closeButton>
  30.           <Modal.Title>
  31.             <p className="text-center">Game Details</p>
  32.           </Modal.Title>
  33.         </Modal.Header>
  34.         <Modal.Body>
  35.           <p>Doubla.exe not found, RIP 🪦</p>
  36.           <p>
  37.             Report Doubla for fucking up the website & not carring the game as
  38.             caitlyn which is his job as an adc main.
  39.           </p>
  40.         </Modal.Body>
  41.       </Modal>
  42.     </div>
  43.   );
  44. }
  45.  
  46. export default PatchNotes;
  47.  
  48. CSS
  49. .bottomPosition {
  50.   position: absolute;
  51.   bottom: -500px;
  52. }
  53.  
Add Comment
Please, Sign In to add comment