Skip to content

Commit

Permalink
DRYD-1326: Update exit reasons list (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter authored Jan 20, 2024
1 parent 746de78 commit 34065b1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/recordTypes/objectexit/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import forms from './forms';
import optionLists from './optionLists';

export default () => (configContext) => ({
optionLists,
recordTypes: {
objectexit: {
forms: forms(configContext),
Expand Down
38 changes: 38 additions & 0 deletions src/plugins/recordTypes/objectexit/optionLists.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { defineMessages } from 'react-intl';

export default {
exitReasons: {
values: [
'deaccession',
'disposal',
'returnofloan',
'temporary',
'transfer',
'painted out',
'covered by construction',
'lost to demolition',
],
messages: defineMessages({
temporary: {
id: 'option.exitReasons.temporary',
defaultMessage: 'temporary',
},
transfer: {
id: 'option.exitReasons.transfer',
defaultMessage: 'transfer',
},
'painted out': {
id: 'option.exitReasons.painted out',
defaultMessage: 'painted out',
},
'covered by construction': {
id: 'option.exitReasons.covered by construction',
defaultMessage: 'covered by construction',
},
'lost to demolition': {
id: 'option.exitReasons.lost to demolition',
defaultMessage: 'lost to demolition',
},
}),
},
};

0 comments on commit 34065b1

Please sign in to comment.