id_verification_page_plugin
This slot is used to replace/modify the IDV Page.
The implementation of the IdVerificationPageSlot component lives in src/plugin-slots/IdVerificationPageSlot/index.jsx.
The following env.config.jsx will replace the default IDV Page.
import { DIRECT_PLUGIN, PLUGIN_OPERATIONS } from '@openedx/frontend-plugin-framework';
const config = {
pluginSlots: {
'org.openedx.frontend.account.id_verification_page.v1': {
plugins: [
{
// Insert a custom IDV Page
op: PLUGIN_OPERATIONS.Insert,
widget: {
id: 'custom_id_verification_page',
type: DIRECT_PLUGIN,
RenderWidget: () => (
<div>
<p>This is the new IDV page</p>
<a href="/">Go Home</a>
</div>
),
},
},
],
},
},
};
export default config;