Skip to content
Snippets Groups Projects

added a warning if user has a narrow screen

Merged Rasmus Svala requested to merge warning-narrow-screen into dev
3 files
+ 77
13
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 17
0
// WarningPopup.js
import React from "react";
const WarningPopup = ({ onClose }) => {
return (
<div className="warning-popup">
<div className="warning-popup-content">
<p>For the best experience, please use a desktop or larger device.</p>
<button className="change-username-button" onClick={onClose}>
Close
</button>
</div>
</div>
);
};
export default WarningPopup;
Loading