|
Last change
on this file since cb0881d was cb0881d, checked in by MBK <marija.karapandzova@…>, 4 months ago |
|
Set up React frontend and add design styles
|
-
Property mode
set to
100644
|
|
File size:
413 bytes
|
| Line | |
|---|
| 1 | import React from 'react';
|
|---|
| 2 |
|
|---|
| 3 | function ErrorAlert({ message, onClose }) {
|
|---|
| 4 | return (
|
|---|
| 5 | <div className="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4 flex justify-between items-center">
|
|---|
| 6 | <span>{message}</span>
|
|---|
| 7 | {onClose && (
|
|---|
| 8 | <button onClick={onClose} className="font-bold text-red-700">
|
|---|
| 9 | ×
|
|---|
| 10 | </button>
|
|---|
| 11 | )}
|
|---|
| 12 | </div>
|
|---|
| 13 | );
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | export default ErrorAlert;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.