Changed name of new component and minor fix
This commit is contained in:
		
							parent
							
								
									3106e0f445
								
							
						
					
					
						commit
						1893340c63
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		|  | @ -90,6 +90,9 @@ export default function GetWeeklyReport(): JSX.Element { | |||
|               className="w-fill h-[5vh] font-sans text-[3vh] pl-[1vw] rounded-full text-center pt-[1vh] pb-[1vh] border-2 border-black" | ||||
|               type="week" | ||||
|               placeholder="Week" | ||||
|               value={ | ||||
|                 week === 0 ? "" : `2024-W${week.toString().padStart(2, "0")}` | ||||
|               } | ||||
|               onChange={(e) => { | ||||
|                 const weekNumber = parseInt(e.target.value.split("-W")[1]); | ||||
|                 setWeek(weekNumber); | ||||
|  | @ -1,12 +1,12 @@ | |||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import BackButton from "../../Components/BackButton"; | ||||
| import ViewWeeklyReport from "../../Components/ViewWeeklyReport"; | ||||
| import EditWeeklyReport from "../../Components/EditWeeklyReport"; | ||||
| 
 | ||||
| function UserEditTimeReportPage(): JSX.Element { | ||||
|   const content = ( | ||||
|     <> | ||||
|       <h1 className="font-bold text-[30px] mb-[20px]">Edit Time Report</h1> | ||||
|       <ViewWeeklyReport /> | ||||
|       <EditWeeklyReport /> | ||||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mattias
						Mattias