Removed username prop from basicwindow in all pages
This commit is contained in:
		
							parent
							
								
									388a430613
								
							
						
					
					
						commit
						d692165f99
					
				
					 25 changed files with 27 additions and 26 deletions
				
			
		|  | @ -11,6 +11,6 @@ function AdminAddProject(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminAddProject; | ||||
|  |  | |||
|  | @ -15,6 +15,6 @@ function AdminAddUser(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminAddUser; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminChangeUsername(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminChangeUsername; | ||||
|  |  | |||
|  | @ -21,6 +21,6 @@ function AdminManageProjects(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminManageProjects; | ||||
|  |  | |||
|  | @ -36,6 +36,6 @@ function AdminManageUsers(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminManageUsers; | ||||
|  |  | |||
|  | @ -22,6 +22,6 @@ function AdminMenuPage(): JSX.Element { | |||
| 
 | ||||
|   const buttons = <></>; | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminMenuPage; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminProjectAddMember(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectAddMember; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminProjectChangeUserRole(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectChangeUserRole; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminProjectManageMembers(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectManageMembers; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminProjectPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectPage; | ||||
|  |  | |||
|  | @ -16,6 +16,6 @@ function AdminProjectStatistics(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectStatistics; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminProjectViewMemberInfo(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminProjectViewMemberInfo; | ||||
|  |  | |||
|  | @ -23,6 +23,6 @@ function AdminViewUserInfo(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default AdminViewUserInfo; | ||||
|  |  | |||
|  | @ -18,6 +18,6 @@ function ChangeRole(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default ChangeRole; | ||||
|  |  | |||
|  | @ -10,6 +10,6 @@ function PMOtherUsersTR(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMOtherUsersTR; | ||||
|  |  | |||
|  | @ -30,6 +30,6 @@ function PMProjectMembers(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMProjectMembers; | ||||
|  |  | |||
|  | @ -31,6 +31,6 @@ function PMProjectPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={undefined} />; | ||||
|   return <BasicWindow content={content} buttons={undefined} />; | ||||
| } | ||||
| export default PMProjectPage; | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| import BackButton from "../../Components/BackButton"; | ||||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| import TimeReport from "../../Components/NewWeeklyReport"; | ||||
| 
 | ||||
| function PMTotalTimeActivity(): JSX.Element { | ||||
|  | @ -18,6 +18,6 @@ function PMTotalTimeActivity(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMTotalTimeActivity; | ||||
|  |  | |||
|  | @ -10,6 +10,6 @@ function PMTotalTimeRole(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMTotalTimeRole; | ||||
|  |  | |||
|  | @ -10,6 +10,6 @@ function PMUnsignedReports(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMUnsignedReports; | ||||
|  |  | |||
|  | @ -1,3 +1,4 @@ | |||
| import BackButton from "../../Components/BackButton"; | ||||
| import BasicWindow from "../../Components/BasicWindow"; | ||||
| import Button from "../../Components/Button"; | ||||
| import TimeReport from "../../Components/NewWeeklyReport"; | ||||
|  | @ -32,6 +33,6 @@ function PMViewUnsignedReport(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default PMViewUnsignedReport; | ||||
|  |  | |||
|  | @ -16,6 +16,6 @@ function UserEditTimeReportPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserEditTimeReportPage; | ||||
|  |  | |||
|  | @ -25,6 +25,6 @@ function UserNewTimeReportPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserNewTimeReportPage; | ||||
|  |  | |||
|  | @ -27,6 +27,6 @@ function UserProjectPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserProjectPage; | ||||
|  |  | |||
|  | @ -15,6 +15,6 @@ function UserViewTimeReportsPage(): JSX.Element { | |||
|     </> | ||||
|   ); | ||||
| 
 | ||||
|   return <BasicWindow username="Admin" content={content} buttons={buttons} />; | ||||
|   return <BasicWindow content={content} buttons={buttons} />; | ||||
| } | ||||
| export default UserViewTimeReportsPage; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Peter KW
						Peter KW