Skip to content

Commit

Permalink
fix: use UserInfo type
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Mar 20, 2024
1 parent 7cd94fb commit 8579f77
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/console/src/components/ItemPreview/UserPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type User } from '@logto/schemas';
import { type UserInfo } from '@logto/schemas';
import { conditional } from '@silverhand/essentials';

import SuspendedTag from '@/pages/Users/components/SuspendedTag';
Expand All @@ -13,13 +13,13 @@ type Props = {
* A subset of User schema type that is used in the preview component.
*/
user: {
id: User['id'];
avatar?: User['avatar'];
name?: User['name'];
primaryEmail?: User['primaryEmail'];
primaryPhone?: User['primaryPhone'];
username?: User['username'];
isSuspended?: User['isSuspended'];
id: UserInfo['id'];
avatar?: UserInfo['avatar'];
name?: UserInfo['name'];
primaryEmail?: UserInfo['primaryEmail'];
primaryPhone?: UserInfo['primaryPhone'];
username?: UserInfo['username'];
isSuspended?: UserInfo['isSuspended'];
};
/**
* Whether to provide a link to user details page. Explicitly set to `false` to hide it.
Expand Down

0 comments on commit 8579f77

Please sign in to comment.