Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/core/app-switcher/__tests__/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ test('product configs should not change without updating this test', () => {
"appName": "Auto Responder",
"supplementaryInfo": "Automated Email Marketing",
},
"bdm": {
"appName": "Lettings BDM",
"supplementaryInfo": "New Business",
},
"consoleCloud": {
"appName": "Reapit PM",
"supplementaryInfo": "Property Management",
Expand All @@ -31,10 +35,6 @@ test('product configs should not change without updating this test', () => {
"appName": "KeyWhere",
"supplementaryInfo": "Real-time Key Management",
},
"lettingsBDM": {
"appName": "Lettings BDM",
"supplementaryInfo": "New Business",
},
"reapitForms": {
"appName": "Reapit Forms",
"supplementaryInfo": "Documents & Digital Signing",
Expand Down Expand Up @@ -65,7 +65,7 @@ test('product display order should not change without updating this test', () =>
"ireWeb",
"consoleCloud",
"keywhere",
"lettingsBDM",
"bdm",
]
`)
})
Original file line number Diff line number Diff line change
Expand Up @@ -32,66 +32,66 @@ exports[`renders autoResponder icon when \`hasAccess\` is true 1`] = `
</DocumentFragment>
`;

exports[`renders consoleCloud icon when \`hasAccess\` is false 1`] = `
exports[`renders bdm icon when \`hasAccess\` is false 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%23607890'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders consoleCloud icon when \`hasAccess\` is true 1`] = `
exports[`renders bdm icon when \`hasAccess\` is true 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234C56F3'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%234C56F3'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders ireWeb icon when \`hasAccess\` is false 1`] = `
exports[`renders consoleCloud icon when \`hasAccess\` is false 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders ireWeb icon when \`hasAccess\` is true 1`] = `
exports[`renders consoleCloud icon when \`hasAccess\` is true 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-pm__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M8.375%2013v14L20.5%2034l12.124-7v-7.737l-1.687-.975-2.806-1.62-1.082-.624v4.83l-.002%204.83H13.95V16.07l3.275-1.89%202.192-1.265%201.082-.625%203.275%201.877%202.192%201.256%201.083.62V9.782L20.5%206%208.376%2013Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-pm__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders keywhere icon when \`hasAccess\` is false 1`] = `
exports[`renders ireWeb icon when \`hasAccess\` is false 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings-disabled__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings-disabled__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.075'%20stop-color='%23798DA1'/%3e%3cstop%20offset='.575'%20stop-color='%23607890'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders keywhere icon when \`hasAccess\` is true 1`] = `
exports[`renders ireWeb icon when \`hasAccess\` is true 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='url(%23reapit-lettings__a)'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23fff'%20d='M32.576%206C12.293%206%208.776%2025.887%207.424%2034H9.1c.45-2.977%203.493-14.748%2010.899-20.287%200%200-5.633%206.976-6.572%2015.051%203.426-.652%2013.845-3.372%2016.056-12.927l-3.84-.61c1.352-1.351%204.909-5.17%206.931-9.226V6Z'/%3e%3cdefs%3e%3clinearGradient%20id='reapit-lettings__a'%20x1='20.702'%20x2='20.702'%20y1='.351'%20y2='31.228'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%235573FD'/%3e%3cstop%20offset='.575'%20stop-color='%234E56EA'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders lettingsBDM icon when \`hasAccess\` is false 1`] = `
exports[`renders keywhere icon when \`hasAccess\` is false 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%23607890'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23F2F4F6'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%23607890'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e"
/>
</DocumentFragment>
`;

exports[`renders lettingsBDM icon when \`hasAccess\` is true 1`] = `
exports[`renders keywhere icon when \`hasAccess\` is true 1`] = `
<DocumentFragment>
<img
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234C56F3'%20d='M31.134%208.083c-6.688%200-17.64%205.486-11.323%2023.27h1.456s-1.033-3.718-1.209-6.292c10.92-2.944%2011.453-12.402%2011.076-16.978Z'/%3e%3cpath%20fill='%234C56F3'%20d='M16.906%2014.772c-2.743-2.685-7.716-1.976-7.716-1.976-.13%203.048-.013%2010.335%208.04%2013.65-2.183-7.183-.324-11.674-.324-11.674Z'/%3e%3c/svg%3e"
src="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%20viewBox='0%200%2040%2040'%3e%3cpath%20fill='%23ECF3FF'%20d='M0%208a8%208%200%200%201%208-8h24a8%208%200%200%201%208%208v24a8%208%200%200%201-8%208H8a8%208%200%200%201-8-8V8Z'/%3e%3cpath%20fill='%234E56EA'%20d='m30.68%2023.655-4.2-4.196%203.989-3.984a4.243%204.243%200%200%200%200-5.986%204.257%204.257%200%200%200-5.995%200l-6.815%206.903-.014.025v-4.059c0-2.329-1.907-4.233-4.24-4.233-2.331%200-4.239%201.904-4.239%204.233v14.165c0%201.163.476%202.222%201.245%202.989l-.008.015a4.257%204.257%200%200%200%205.995%200l4.113-4.108%204.175%204.222a4.257%204.257%200%200%200%205.995%200%204.243%204.243%200%200%200%200-5.987v.001ZM13.407%208.764a3.558%203.558%200%200%201%203.56%203.555%203.558%203.558%200%200%201-3.56%203.555%203.558%203.558%200%200%201-3.56-3.555%203.558%203.558%200%200%201%203.56-3.555Zm.025%2021.314a3.532%203.532%200%201%201%200-7.063%203.532%203.532%200%201%201%200%207.063Zm10.472-17.915a3.558%203.558%200%200%201%203.803-3.293%203.556%203.556%200%200%201%203.298%203.799A3.558%203.558%200%200%201%2027.2%2015.96a3.556%203.556%200%200%201-3.297-3.798Zm3.994%2018.136a3.647%203.647%200%200%201-3.847-3.435%203.646%203.646%200%200%201%203.44-3.842%203.644%203.644%200%201%201%20.408%207.276Z'/%3e%3c/svg%3e"
/>
</DocumentFragment>
`;
Expand Down
12 changes: 6 additions & 6 deletions src/core/app-switcher/app-avatar/app-avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ interface AppAvatarProps {
*/
export function AppAvatar({ hasAccess, productId }: AppAvatarProps) {
switch (productId) {
case 'consoleCloud':
return hasAccess ? <img src={ReapitPM} /> : <img src={ReapitPMDisabled} />
case 'agentBox':
return hasAccess ? <img src={ReapitSales} /> : <img src={ReapitSalesDisabled} />
case 'autoResponder':
return hasAccess ? <img src={AutoResponder} /> : <img src={AutoResponderDisabled} />
case 'bdm':
return hasAccess ? <img src={LettingsBDM} /> : <img src={LettingsBDMDisabled} />
case 'consoleCloud':
return hasAccess ? <img src={ReapitPM} /> : <img src={ReapitPMDisabled} />
case 'ireWeb':
return hasAccess ? <img src={ReapitLettings} /> : <img src={ReapitLettingsDisabled} />
case 'reapitForms':
Expand All @@ -46,9 +50,5 @@ export function AppAvatar({ hasAccess, productId }: AppAvatarProps) {
return hasAccess ? <img src={ReapitProposals} /> : <img src={ReapitProposalsDisabled} />
case 'keywhere':
return hasAccess ? <img src={KeyWhere} /> : <img src={KeyWhereDisabled} />
case 'autoResponder':
return hasAccess ? <img src={AutoResponder} /> : <img src={AutoResponderDisabled} />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: lettingsBDM -> bdm plus some other alphabetising

case 'lettingsBDM':
return hasAccess ? <img src={LettingsBDM} /> : <img src={LettingsBDMDisabled} />
}
}
12 changes: 6 additions & 6 deletions src/core/app-switcher/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
export type SupportedProductId =
| 'agentBox' // Reapit Sales
| 'autoResponder'
| 'bdm' // Lettings BDM
| 'consoleCloud' // Reapit PM
| 'ireWeb' // Reapit Lettings
| 'keywhere'
| 'lettingsBDM'
| 'reapitForms'
| 'reapitProposals'
| 'reapitWebsites'
Expand All @@ -31,6 +31,10 @@ export const productConfigs = {
supplementaryInfo: 'Automated Email Marketing',
},
agentBox: { appName: 'Reapit Sales', supplementaryInfo: 'Real Estate CRM' },
bdm: {
appName: 'Lettings BDM',
supplementaryInfo: 'New Business',
},
consoleCloud: { appName: 'Reapit PM', supplementaryInfo: 'Property Management' },
ireWeb: {
appName: 'Reapit Lettings',
Expand All @@ -40,10 +44,6 @@ export const productConfigs = {
appName: 'KeyWhere',
supplementaryInfo: 'Real-time Key Management',
},
lettingsBDM: {
appName: 'Lettings BDM',
supplementaryInfo: 'New Business',
},
reapitForms: {
appName: 'Reapit Forms',
supplementaryInfo: 'Documents & Digital Signing',
Expand Down Expand Up @@ -74,5 +74,5 @@ export const productDisplayOrder_DO_NOT_ADD_PRODUCTS_TO_THIS_UNLESS_APPROVED_FOR
'consoleCloud', // Reapit PM
// Secondary apps here (should be alphatically ordered by configured app name)
'keywhere',
'lettingsBDM',
'bdm',
] as const satisfies SupportedProductId[]
Loading