feat(auth0) add LoginButton component
This commit is contained in:
parent
61dc47ad54
commit
344108e536
|
@ -1,10 +1,16 @@
|
|||
import React from 'react';
|
||||
import Home from './pages/home';
|
||||
import LoginButton from './components/login-button';
|
||||
export default function App() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Auth0 with React.js</h1>
|
||||
<Home />
|
||||
</div>
|
||||
)
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<h1>Auth0 with React.js</h1>
|
||||
<Home />
|
||||
</div>
|
||||
<div>
|
||||
<LoginButton />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
function LoginButton(props) {
|
||||
return (
|
||||
<div>
|
||||
<button className="loginButton">Login</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default LoginButton;
|
|
@ -17,7 +17,6 @@ root.render(
|
|||
clientId="0DZCL8TWnttm6zYbxmU675EmATaIEDfn"
|
||||
redirectUri={window.location.origin}
|
||||
>
|
||||
<Auth0Provider>
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
|
|
Loading…
Reference in New Issue