Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 9f3cace

Browse files
committed
add documentation to the onMatchHook
1 parent f5d6577 commit 9f3cace

File tree

3 files changed

+570
-605
lines changed

3 files changed

+570
-605
lines changed

dashboard/components/onMatchHookModal/modal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
FormControlLabel,
99
Radio,
1010
ButtonGroup,
11-
Checkbox,
11+
Chip,
1212
} from '@mui/material'
1313
import { DataGrid } from '@mui/x-data-grid'
1414
import React, { useState, useEffect } from 'react'
@@ -146,6 +146,11 @@ export function SecretModal({ kind, onClose: onCloseArg, hook }: ModalProps) {
146146
else if (kind == ModalKind.Edit || kind == ModalKind.Create)
147147
return (
148148
<div>
149+
<DialogContentText>A hook is called when a CV has been matched to a profile and when a list of CVs is matched to list profiles.</DialogContentText>
150+
<DialogContentText>The kind of data send to a hook can be checked via the <Chip label='Data-Kind' size="small" /> header.</DialogContentText>
151+
<DialogContentText>the value of the <Chip label='Data-Kind' size="small" /> header will be <Chip label='match' size="small" /> for single cv to profile matches and <Chip label='list' size="small" /> for list profiles matching a list of cvs</DialogContentText>
152+
<br />
153+
149154
<FormControl component="fieldset" fullWidth>
150155
<FormLabel component="legend">Method</FormLabel>
151156
<RadioGroup aria-label="method" name="method" value={method} onChange={e => setMethod(e.target.value)}>

0 commit comments

Comments
 (0)