Last change
on this file was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago |
Add project
|
-
Property mode
set to
100644
|
File size:
599 bytes
|
Line | |
---|
1 | import React from 'react';
|
---|
2 | import styles from '../../css/ShoppingCartCss/error-modal.module.css';
|
---|
3 |
|
---|
4 | const ErrorModal = ({ message, onClose, onLogin }) => {
|
---|
5 | return (
|
---|
6 | <div className={styles.modalOverlay}>
|
---|
7 | <div className={styles.modalContent}>
|
---|
8 | <h2>Notification</h2>
|
---|
9 | <p>{message}</p>
|
---|
10 | <button className={styles.modalButtonClose} onClick={onClose}>Close</button>
|
---|
11 | <button className={styles.modalButtonLogin} onClick={onLogin}>Go to Login</button>
|
---|
12 | </div>
|
---|
13 | </div>
|
---|
14 | );
|
---|
15 | };
|
---|
16 |
|
---|
17 | export default ErrorModal;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.