mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Chore: Fix strict errors, down to 416 (#31365)
This commit is contained in:
@@ -23,7 +23,7 @@ export const ChangePasswordPage: FC<Props> = ({ navModel }) => (
|
||||
teams: Team[],
|
||||
orgs: UserOrg[],
|
||||
sessions: UserSession[],
|
||||
user: UserDTO
|
||||
user?: UserDTO
|
||||
) => {
|
||||
return (
|
||||
<Page.Contents>
|
||||
@@ -31,7 +31,7 @@ export const ChangePasswordPage: FC<Props> = ({ navModel }) => (
|
||||
{states.loadUser ? (
|
||||
<LoadingPlaceholder text="Loading user profile..." />
|
||||
) : (
|
||||
<ChangePasswordForm user={user} onChangePassword={api.changePassword} isSaving={states.changePassword} />
|
||||
<ChangePasswordForm user={user!} onChangePassword={api.changePassword} isSaving={states.changePassword} />
|
||||
)}
|
||||
</Page.Contents>
|
||||
);
|
||||
|
||||
@@ -27,7 +27,7 @@ export const UserProfileEdit: FC<Props> = ({ navModel }) => (
|
||||
teams: Team[],
|
||||
orgs: UserOrg[],
|
||||
sessions: UserSession[],
|
||||
user: UserDTO
|
||||
user?: UserDTO
|
||||
) => {
|
||||
return (
|
||||
<Page.Contents>
|
||||
@@ -37,7 +37,7 @@ export const UserProfileEdit: FC<Props> = ({ navModel }) => (
|
||||
<UserProfileEditForm
|
||||
updateProfile={api.updateUserProfile}
|
||||
isSavingUser={states.updateUserProfile}
|
||||
user={user}
|
||||
user={user!}
|
||||
/>
|
||||
)}
|
||||
<SharedPreferences resourceUri="user" />
|
||||
@@ -49,14 +49,14 @@ export const UserProfileEdit: FC<Props> = ({ navModel }) => (
|
||||
setUserOrg={api.setUserOrg}
|
||||
loadOrgs={api.loadOrgs}
|
||||
orgs={orgs}
|
||||
user={user}
|
||||
user={user!}
|
||||
/>
|
||||
<UserSessions
|
||||
isLoading={states.loadSessions}
|
||||
loadSessions={api.loadSessions}
|
||||
revokeUserSession={api.revokeUserSession}
|
||||
sessions={sessions}
|
||||
user={user}
|
||||
user={user!}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user