0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 12:52:38 +00:00

Add Share ID to lock notification

This commit is contained in:
G.Ambatte
2024-05-10 08:17:09 +12:00
parent bf38f95d25
commit 632efe8b9f

View File

@@ -3,7 +3,14 @@ const React = require('react');
const createClass = require('create-react-class'); const createClass = require('create-react-class');
const LockNotification = createClass({ const LockNotification = createClass({
displayName : 'LockNotification', displayName : 'LockNotification',
getDefaultProps : function() {
return {
shareId : 0
};
},
getInitialState : function() { getInitialState : function() {
return { return {
disableLock : ()=>{} disableLock : ()=>{}
@@ -11,7 +18,7 @@ const LockNotification = createClass({
}, },
removeLock : function() { removeLock : function() {
alert('Not yet implemented'); alert(`Not yet implemented - ID ${this.props.shareId}`);
}, },
render : function(){ render : function(){