Skip to content

Commit

Permalink
fix: clean-up react-contoso homepage (#3008)
Browse files Browse the repository at this point in the history
* clean-up react-contoso homepage

* remove theme toggle

Co-authored-by: S茅bastien Levert <sebastienlevert@users.noreply.github.com>

* remove theme toggle import

---------

Co-authored-by: S茅bastien Levert <sebastienlevert@users.noreply.github.com>
Co-authored-by: Musale Martin <martinmusale@microsoft.com>
  • Loading branch information
3 people committed Feb 2, 2024
1 parent 573fa45 commit c8c564d
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions samples/react-contoso/src/pages/HomePage.tsx
@@ -1,54 +1,10 @@
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 c8c564d

Please sign in to comment.