Major overhaul to the Notes/Issues. Minor tweaks to the UI. Added Profile photos
This commit is contained in:
@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
|
||||
import { useNavigate, useParams, useSearchParams } from "react-router-dom";
|
||||
import api from "../api/client";
|
||||
|
||||
const CATEGORIES = ["general", "maintenance", "installation", "issue", "other"];
|
||||
const CATEGORIES = ["general", "maintenance", "installation", "issue", "action_item", "other"];
|
||||
|
||||
export default function NoteForm() {
|
||||
const { id } = useParams();
|
||||
@@ -193,7 +193,7 @@ export default function NoteForm() {
|
||||
>
|
||||
{CATEGORIES.map((c) => (
|
||||
<option key={c} value={c}>
|
||||
{c.charAt(0).toUpperCase() + c.slice(1)}
|
||||
{c.replace(/_/g, " ").replace(/\b\w/g, ch => ch.toUpperCase())}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user