- 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;
|
||||
Reference in New Issue
Block a user