- added page managebandi;
- improved styles of the pages and sections;
This commit is contained in:
19
src/helpers/getBandoLabel.js
Normal file
19
src/helpers/getBandoLabel.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { __ } from '@wordpress/i18n';
|
||||
|
||||
const getBandoLabel = (status) => {
|
||||
switch (status) {
|
||||
case 'publish':
|
||||
return __('Pubblicato', 'gepafin');
|
||||
|
||||
case 'draft':
|
||||
return __('Bozza', 'gepafin');
|
||||
|
||||
case 'closed':
|
||||
return __('Chiuso', 'gepafin');
|
||||
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
};
|
||||
|
||||
export default getBandoLabel;
|
||||
17
src/helpers/getBandoSeverity.js
Normal file
17
src/helpers/getBandoSeverity.js
Normal file
@@ -0,0 +1,17 @@
|
||||
const getBandoSeverity = (status) => {
|
||||
switch (status) {
|
||||
case 'publish':
|
||||
return 'success';
|
||||
|
||||
case 'draft':
|
||||
return 'warning';
|
||||
|
||||
case 'closed':
|
||||
return 'closed';
|
||||
|
||||
default:
|
||||
return 'info';
|
||||
}
|
||||
};
|
||||
|
||||
export default getBandoSeverity;
|
||||
Reference in New Issue
Block a user