update and fix bug on Teams Mobile
This commit is contained in:
parent
0775616991
commit
ef0251e79d
|
@ -6,6 +6,7 @@ import {
|
|||
export const useMyDayStyles = makeStyles({
|
||||
myDayContainer: {
|
||||
width: "100%",
|
||||
minWidth: "100%",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "start",
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
/* eslint-disable no-unused-expressions */
|
||||
import * as React from 'react';
|
||||
|
||||
import { Get } from '@microsoft/mgt-react/dist/es6/spfx';
|
||||
|
||||
import { useItemStyles } from './useItemStyles';
|
||||
|
||||
export interface INewsProps {}
|
||||
|
||||
export const TrendingList: React.FunctionComponent<INewsProps> = (props: React.PropsWithChildren<INewsProps>) => {
|
||||
const styles = useItemStyles();
|
||||
return (
|
||||
<>
|
||||
<div className={styles.centerContainer}>
|
||||
<Get
|
||||
resource="/me/insights/trending"
|
||||
maxPages={1}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
|
@ -1,21 +0,0 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import * as React from 'react';
|
||||
|
||||
import {
|
||||
MgtTemplateProps,
|
||||
} from '@microsoft/mgt-react/dist/es6/MgtTemplateProps';
|
||||
|
||||
export const TrendingTempplateDefault: React.FunctionComponent<MgtTemplateProps> = (props: MgtTemplateProps) => {
|
||||
const { value } = props.dataContext;
|
||||
return (
|
||||
<>
|
||||
{value?.map((item: any, index: number) => {
|
||||
return (
|
||||
<>
|
||||
|
||||
</>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
);
|
||||
};
|
Loading…
Reference in New Issue