Ivan - Fix StaffEditor issues [skip ci]

This commit is contained in:
ivan 2017-04-20 21:54:04 -03:00
parent bd52d7b680
commit 7b8226f579
4 changed files with 7 additions and 17 deletions

View File

@ -2,7 +2,7 @@
module.exports = { module.exports = {
'serverport': 3000, 'serverport': 4000,
'scripts': { 'scripts': {
'src': './src/*.js', 'src': './src/*.js',

View File

@ -198,7 +198,7 @@ class StaffEditor extends React.Component {
<div className="staff-editor__delete-title"> <div className="staff-editor__delete-title">
{i18n('DELETE_STAFF_MEMBER')} {i18n('DELETE_STAFF_MEMBER')}
</div> </div>
<Button onClick={AreYouSure.openModal.bind(this, i18n('WILL_DELETE_STAFF'), this.onDeleteClick.bind(this))}> <Button onClick={() => AreYouSure.openModal(i18n('WILL_DELETE_STAFF'), this.onDeleteClick.bind(this))}>
{i18n('DELETE_STAFF_MEMBER')} {i18n('DELETE_STAFF_MEMBER')}
</Button> </Button>
</div> </div>

View File

@ -136,7 +136,7 @@
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 180px; min-width: 180px;
} }
&__update-email, &__update-email,

View File

@ -1,15 +1,5 @@
<?php <?php
$env['MYSQL_SERVER'] = getenv('MYSQL_SERVER'); define('MYSQL_HOST', 'localhost');
$env['MYSQL_USER'] = getenv('MYSQL_USER'); define('MYSQL_USER', 'root');
$env['MYSQL_PASSWORD'] = getenv('MYSQL_PASSWORD'); define('MYSQL_PASSWORD', '');
$env['MYSQL_DATABASE'] = getenv('MYSQL_DATABASE'); define('MYSQL_DATABASE', 'development');
$mysql_host = ($env['MYSQL_SERVER']) ? $env['MYSQL_SERVER'] : 'localhost';
$mysql_user = ($env['MYSQL_USER']) ? $env['MYSQL_USER'] : 'root';
$mysql_password = ($env['MYSQL_PASSWORD']) ? $env['MYSQL_PASSWORD'] : '';
$mysql_database = ($env['MYSQL_DATABASE']) ? $env['MYSQL_DATABASE'] : 'development';
define('MYSQL_HOST', $mysql_host);
define('MYSQL_USER', $mysql_user);
define('MYSQL_PASSWORD', $mysql_password);
define('MYSQL_DATABASE', $mysql_database);