1+ import { ContextType , useContext , useMemo } from 'react' ;
2+ import { useNavigate } from 'react-router-dom' ;
13import { useIntl } from '@edx/frontend-platform/i18n' ;
24import { Icon , IconButton } from '@openedx/paragon' ;
35import { AppContext } from '@edx/frontend-platform/react' ;
46import {
57 RemoveRedEye ,
68 Delete , ExpandMore ,
79} from '@openedx/paragon/icons' ;
8- import { TableCellValue , AppContextType , UserRole } from '@src/types' ;
9- import { useNavigate } from 'react-router-dom' ;
10- import { useContext , useMemo } from 'react' ;
10+ import { UserRole } from '@src/types' ;
11+ import type { TableCellValue } from '@src/paragon' ;
1112import { DJANGO_MANAGED_ROLES , MAP_ROLE_KEY_TO_LABEL } from '@src/authz-module/constants' ;
1213import { RESOURCE_ICONS } from './constants' ;
1314import messages from './messages' ;
@@ -25,7 +26,7 @@ type ExtendedCellProps = CellPropsWithValue & {
2526
2627const NameCell = ( { row } : CellProps ) => {
2728 const intl = useIntl ( ) ;
28- const { authenticatedUser } = useContext ( AppContext ) as AppContextType ;
29+ const { authenticatedUser } = useContext ( AppContext ) as ContextType < typeof AppContext > ;
2930 const username = authenticatedUser ?. username ;
3031
3132 if ( row . original . username === username ) {
@@ -36,7 +37,7 @@ const NameCell = ({ row }: CellProps) => {
3637 </ span >
3738 ) ;
3839 }
39- return row . original . fullName || row . original . username ;
40+ return < span > { row . original . fullName || row . original . username } </ span > ;
4041} ;
4142
4243const ViewActionCell = ( { row } : CellProps ) => {
0 commit comments