Skip to content

Commit

Permalink
remove contoso changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Feb 1, 2024
1 parent 22f3dc1 commit f39a6f1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
4 changes: 1 addition & 3 deletions samples/react-contoso/src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Login, SearchBox, ThemeToggle } from '@microsoft/mgt-react';
import { Login, SearchBox } from '@microsoft/mgt-react';
import { PACKAGE_VERSION } from '@microsoft/mgt-element';
import { InfoButton } from '@fluentui/react-components/unstable';
import { SimpleLogin } from './SimpleLogin';
Expand Down Expand Up @@ -166,8 +166,6 @@ const HeaderComponent: React.FunctionComponent = () => {

<div className={styles.login}>
<ThemeSwitcher />
<ThemeToggle />

<div className={mergeClasses(!isSignedIn ? styles.signedOut : styles.signedIn, styles.root)}>
<Login>
<SimpleLogin template="signed-in-button-content" />
Expand Down
44 changes: 44 additions & 0 deletions samples/react-contoso/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
import * as React from 'react';
import { PageHeader } from '../components/PageHeader';
import {
FileList,
File,
Person,
Spinner,
Agenda,
PersonCard,
People,
Get,
ThemeToggle,
Picker,
TeamsChannelPicker
} from '@microsoft/mgt-react';
import { Messages } from '../components/Messages';
import { Loading } from '../components/Loading';
import { GetDefaultContent } from '../components/GetDefaultContent';

const HomePage: React.FunctionComponent = () => {
return (
<>
<ThemeToggle />
<TeamsChannelPicker />
<Picker
resource="me/todo/lists"
scopes={['tasks.read', 'tasks.readwrite']}
placeholder="Select a task list"
keyName="displayName"
/>
<FileList />
<Get resource="/me/messages" maxPages={1}>
<GetDefaultContent template="default" />
<Messages template="value"></Messages>
<Loading template="loading" message={'Loading your focused inbox...'}></Loading>
</Get>
<PageHeader title={'Home'} description={'Welcome to Contoso!'}></PageHeader>
<Spinner />
<People />
<File
driveId="b!M5IeZ2QKf0y18TIIXsDQkecHx1QrukxCte8X3n6ka6yn409-utaER7M2W9uRO4yB"
itemId="01WEUQSTSBWERA5VH4BFALQBXUDVUMT22G"
/>
<Person
personQuery="LeeG@wgww6.onmicrosoft.com"
personCardInteraction="click"
avatarType="initials"
avatarSize="auto"
/>
<Agenda />
<PersonCard personQuery="LeeG@wgww6.onmicrosoft.com" />
</>
);
};
Expand Down

0 comments on commit f39a6f1

Please sign in to comment.