-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
PeoplePickerPage.tsx
32 lines (29 loc) · 1.19 KB
/
PeoplePickerPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import * as React from 'react';
import { ControlsAreaPage, IControlsPageProps } from '../ControlsAreaPage';
import { PeoplePickerPageProps } from './PeoplePickerPage.doc';
import { Platforms } from '../../../interfaces/Platforms';
import { IPageSectionProps } from '@uifabric/example-app-base/lib/index2';
const baseUrl = 'https://github.com/OfficeDev/office-ui-fabric-react/tree/master/apps/fabric-website/src/pages/Controls/PeoplePickerPage/';
export const PeoplePickerPage: React.StatelessComponent<IControlsPageProps> = props => {
const { platform } = props;
return (
<ControlsAreaPage
{...props}
title="People Picker"
{...PeoplePickerPageProps[platform]}
otherSections={_otherSections(platform) as IPageSectionProps[]}
/>
);
};
function _otherSections(platform: Platforms): IPageSectionProps<Platforms>[] {
switch (platform) {
case 'android':
return [
{
sectionName: 'Implementation',
editUrl: baseUrl + 'docs/android/PeoplePickerImplementation.md',
content: require('!raw-loader!@uifabric/fabric-website/src/pages/Controls/PeoplePickerPage/docs/android/PeoplePickerImplementation.md') as string
}
];
}
}