Default

Function: default()

function default(props): Element

Defined in: src/components/manage-possible-tasks/edit-possible-task.tsx:25

EditPossibleTask component that allows users to create or edit a possible task. It provides input fields for the task's short description, long description, points, maximum occurrences per period, and whether the task is active.

Parameters

props

The properties passed to the component.

className?

string = ''

Optional additional class names for styling.

possibleTask?

null | { description: string; id: string; isActive: boolean; maxPerPeriod?: null | number; points: number; shortDescription: string; } = null

The possible task object to edit, or null for creating a new task.

Returns

Element

A JSX element that represents a form for creating or editing a possible task.