function NewTimeReport(): JSX.Element { const activities = [ "Development", "Meeting", "Administration", "Own Work", "Studies", "Testing", ]; return ( <>
{ event.preventDefault(); }} onPaste={(event) => { event.preventDefault(); }} /> {activities.map((activity, index) => ( ))}
Activity Total Time (min)
{activity} { const keyValue = event.key; if (!/\d/.test(keyValue) && keyValue !== "Backspace") event.preventDefault(); }} />
); } export default NewTimeReport;