Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Sep 15, 2024
1 parent 6ae4ae1 commit 4f1df2d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions clientv2/src/components/LoginComponent/AcmLoginButton.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import { Button, ButtonProps } from '@mantine/core';
import { Button, ButtonProps, Image } from '@mantine/core';
import { useMsal } from '@azure/msal-react';
import { InteractionStatus } from '@azure/msal-browser';
import { useAuth } from '../AuthContext';
import { Image } from '@mantine/core';
import blockI from '@/blockI.png'
import blockI from '@/blockI.png';

export function AcmLoginButton(props: ButtonProps & React.ComponentPropsWithoutRef<'button'>) {
const { loginMsal } = useAuth();
const { inProgress } = useMsal();
return (
<Button
disabled={inProgress === InteractionStatus.Login}
leftSection={<Image src={blockI} style={{'height': '1.5em', 'width': 'auto', 'paddingRight': '0.8em'}}></Image>}
leftSection={
<Image
src={blockI}
style={{ height: '1.5em', width: 'auto', paddingRight: '0.8em' }}
></Image>

Check failure on line 17 in clientv2/src/components/LoginComponent/AcmLoginButton.tsx

View workflow job for this annotation

GitHub Actions / Run Unit Tests

Closing tag of a multiline JSX expression must be on its own line
}
color="#FF5F05"
variant="filled"
{...props}
Expand Down

0 comments on commit 4f1df2d

Please sign in to comment.