Skip to content

Commit

Permalink
added TODOs for getting notes from backend
Browse files Browse the repository at this point in the history
  • Loading branch information
hei98 committed Oct 13, 2023
1 parent 7bfec93 commit ce8aa20
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ import { AdminPageLayout } from '../AdminPageLayout/AdminPageLayout';
import styles from './InterviewNotesAdminPage.module.scss';

export function InterviewNotesPage() {
//TODO: interview notes from backen
const [editingMode, setEditingMode] = useState(false);
const [text, setText] = useState('Notater fra intervjuet her...'); //place the text from the backend here.
const posid = 1; //place id for the person applying here.
const [text, setText] = useState('Notater fra intervjuet her...'); //TODO: place the text from the backend here.
const posid = 1; //TODO: get the posid from the backend.

function handleOnClick() {
if (editingMode) {
setEditingMode(false);
//Save the text in the textbox and send it to the backend.
//TODO: Save the text in the textbox and send it to the backend.
} else {
setEditingMode(true);
//Get the text from the backend, and place it in the textbox.
//TODO: Get the text from the backend, and place it in the textbox.
}
}

Expand Down

0 comments on commit ce8aa20

Please sign in to comment.