File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ import { useQueryClient } from "@tanstack/react-query" ;
12import NativeInput from "components/form/NativeInput" ;
23import ExternalLink from "components/ui/ExternalLink" ;
34import { useRef , useState } from "react" ;
@@ -8,6 +9,7 @@ const ImportForm = () => {
89 const importFileRef = useRef ( null ) ;
910 const [ importResponse , setImportResponse ] = useState ( null ) ;
1011 const [ importButtonDisabled , setImportButtonDisabled ] = useState ( true ) ;
12+ const queryClient = useQueryClient ( ) ;
1113
1214 const handleUploadClick = ( ev ) => {
1315 ev . preventDefault ( ) ;
@@ -19,6 +21,7 @@ const ImportForm = () => {
1921 . then ( ( resp ) => resp . json ( ) )
2022 . then ( ( resp ) => {
2123 setImportResponse ( resp ) ;
24+ queryClient . invalidateQueries ( ) ;
2225 } )
2326 . catch ( ( err ) => console . error ( err ) ) ;
2427 } ;
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import RelativeDateFormatter from "components/ui/RelativeDateFormatter";
33export const LastLogin = ( { user } ) => {
44 return (
55 < >
6- { user . last_login_ts ? (
7- < RelativeDateFormatter date = { user . last_login_ts } />
6+ { user . lastLoginAt ? (
7+ < RelativeDateFormatter date = { user . lastLoginAt } />
88 ) : (
99 "Never"
1010 ) }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ interface UserInterface {
22 id ?: number ;
33 createdAt ?: string ;
44 updatedAt ?: string ;
5- last_login_ts ?: string ;
5+ lastLoginAt ?: string ;
66 subject_id ?: string ;
77 active ?: boolean ;
88 mfaEnabled : boolean | undefined ;
You can’t perform that action at this time.
0 commit comments