Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Conversation

@OwenRichards1
Copy link
Contributor

@OwenRichards1 OwenRichards1 commented Jan 27, 2023

ID Title Assigned To Iteration Path
54223 [GTD][Code Sample] React SPA Code Sample Update Owen Richards Content\Production\Security Compliance and Identity\Microsoft Identity\GTD

@henrymbuguakiarie please verify this is correct, pretty sure I have done this correctly.


@cilwerner @Dickson-Mwendia

Copy link
Contributor

@henrymbuguakiarie henrymbuguakiarie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @OwenRichards1, the codes works perfectly fine. I have point some instance where are importing context that we are not using. Otherswise, LGTM.

src/index.js Outdated
@@ -1,104 +1,32 @@
import React, { useState } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We import {useState} but it's never used.

src/index.js Outdated
import { Configuration, PublicClientApplication } from "@azure/msal-browser";
import { MsalProvider, useMsal, useIsAuthenticated } from "@azure/msal-react";
// </ms_docref_import_modules>
import { Configuration, PublicClientApplication } from '@azure/msal-browser';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We import {Configuration} but it's never used.

src/index.js Outdated
import { MsalProvider, useMsal, useIsAuthenticated } from "@azure/msal-react";
// </ms_docref_import_modules>
import { Configuration, PublicClientApplication } from '@azure/msal-browser';
import { MsalProvider, useMsal, useIsAuthenticated } from '@azure/msal-react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We import {useMsal, useIsAuthenticated} but we never use them in this file.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants