feat(auth0) add LogoutButton component
This commit is contained in:
parent
344108e536
commit
ea29090eee
|
@ -1,6 +1,7 @@
|
|||
import React from 'react';
|
||||
import Home from './pages/home';
|
||||
import LoginButton from './components/login-button';
|
||||
import LogoutButton from './components/logout-button';
|
||||
export default function App() {
|
||||
return (
|
||||
<>
|
||||
|
@ -11,6 +12,9 @@ export default function App() {
|
|||
<div>
|
||||
<LoginButton />
|
||||
</div>
|
||||
<div>
|
||||
<LogoutButton />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
import React from 'react';
|
||||
function LogoutButton(props) {
|
||||
return (
|
||||
<div>
|
||||
<button className="loginButton">Logout</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default LogoutButton;
|
Loading…
Reference in New Issue