Skip to content

Commit

Permalink
Change Viewtype values to match string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
musale committed Feb 7, 2024
1 parent 9c1ff30 commit 5c44ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/react-contoso/src/pages/Chats/ChatItem.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Persona, makeStyles, mergeClasses, shorthands } from '@fluentui/react-components';
import { MgtTemplateProps, Person, ViewType } from '@microsoft/mgt-react';
import { MgtTemplateProps, Person } from '@microsoft/mgt-react';
import { Chat, AadUserConversationMember } from '@microsoft/microsoft-graph-types';
import React, { useCallback, useState } from 'react';
import { PeopleTeam16Regular, Calendar16Regular } from '@fluentui/react-icons';
Expand Down Expand Up @@ -157,7 +157,7 @@ const ChatItemComponent = ({ chat, userId }: ChatItemProps) => {
{chat.chatType === 'oneOnOne' && (
<Person
userId={getOtherParticipantId(chat)}
view={messagePreview ? ViewType.twolines : ViewType.oneline}
view={messagePreview ? 'twolines' : 'oneline'}
avatarSize="auto"
showPresence={true}
className={styles.person}
Expand Down

0 comments on commit 5c44ae9

Please sign in to comment.