Added base messagebox
This commit is contained in:
parent
d3fd463a15
commit
eb82d0873b
20
src/components/actions/Msgbox.js
Normal file
20
src/components/actions/Msgbox.js
Normal file
@ -0,0 +1,20 @@
|
||||
import React from "react";
|
||||
// // Generic Msgbox
|
||||
|
||||
function Msgbox(props) {
|
||||
return <div>
|
||||
<div className="card-panel grey darken-1">
|
||||
<div className="card-content white-link">
|
||||
<center>
|
||||
<span className="card-title">
|
||||
{ props.error ? <span> { "Unable to update: " + props.error } </span> : null }
|
||||
{ props.msg ? <span className="white-text">{ "Updated migration details for: " + props.msg }</span> : null }
|
||||
{ props.linkid ? <a href={ "https://devui.benjamyn.love/migrations/" + props.linkid } className="white-link">{"https://devui.benjamyn.love/migrations/" + props.linkid }</a> : null }
|
||||
</span>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
||||
export default Msgbox;
|
||||
Reference in New Issue
Block a user