main
Last change
on this file since 6eba109 was 6eba109, checked in by unknown <mlviktor23@…>, 2 years ago |
implemented authentication in react
|
-
Property mode
set to
100644
|
File size:
292 bytes
|
Rev | Line | |
---|
[6eba109] | 1 | import React, { useState, useContext } from "react";
|
---|
| 2 | import AuthApi from "../api/AuthApi";
|
---|
| 3 |
|
---|
| 4 | import Logout from "../Components/Logout";
|
---|
| 5 |
|
---|
| 6 | function User() {
|
---|
| 7 | const { auth, setAuth } = useContext(AuthApi);
|
---|
| 8 |
|
---|
| 9 | return (
|
---|
| 10 | <>
|
---|
| 11 | user page
|
---|
| 12 | <Logout />
|
---|
| 13 | </>
|
---|
| 14 | );
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | export default User;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.