react-microsoft-login
react-microsoft-login copied to clipboard
Children property issue in typescript
Steps to reproduce:
- Installed the latest version of react-microsoft-login
- Rendered and tried to add children in the MicrosoftLogin component
- Got typescript error " property 'children' does not exist on type 'intrinsicattributes & microsoftloginprops'"
Attachments:
<MicrosoftLogin
clientId={office_clientId}
graphScopes={graphScopes}
prompt={'select_account'}
useLocalStorageCache={true}
authCallback={authHandler}
buttonTheme={'dark'}
children={
<Tooltip title={'One Drive'}>
<IconButton
onClick={(e:any) => {
folderClicked = true;
}}
color='inherit'
>
<Office style={{ height: '20px', width: '20px' }} />
</IconButton>
</Tooltip>
}
/>
any update on this ?
No updates at December 16, 2022.
I'm planning to start working on next version of this package to use new msal, this issue will be fixed in it
No timeframes I can share
Fixed in v2.0.1
https://github.com/alexandrtovmach/react-microsoft-login/commit/851e81ea533b5cf95b733514c6f25c0c683a6f9a