Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6b95d204

Přidáno uživatelem plundrichov před více než 4 roky(ů)

re #58 frontend part refactored

Zobrazit rozdíly:

client/src/App.css
68 68
    cursor: pointer;  
69 69
}
70 70

  
71
.top-nav h4 {
71
.top-nav h5 {
72 72
    color: white;
73 73
}
74 74

  
client/src/Login.js
5 5
function Login() {
6 6
  return (
7 7
    <div className="login-container column">  
8
    <a href={window.config.baseUrl + '/login/google?target=' + window.config.redirectUrl}><p>log in</p></a>
8
      <a href={window.config.baseUrl + '/login/google?target=' + window.config.redirectUrl}><p>log in</p></a>
9 9
    </div>
10 10
  )
11 11
}
client/src/Nav.js
4 4
import * as api_fetch from './api'
5 5

  
6 6
function Nav(props) {
7

  
7
  console.log(props.currentUser)
8 8
  return (
9 9
    props.currentUser === undefined
10 10
  ?
client/src/UpcomingRequests.js
89 89
      <div className="offs-items column">
90 90
        <div className="offs-item row">
91 91
          <table>
92
          {props.user.length > 0 ?
92 93
            <tbody>
93 94
              <tr>
94 95
                <th>Name</th>
......
110 111
            :
111 112
            <tbody>
112 113
              <p>There are no requests.</p>
113
            </tbody>
114
              
114
            </tbody>}   
115 115
            </table>
116 116
        </div>
117 117
      </div>
client/src/api.js
1
// ******************** GET DATA APP getCurrentProfile ********************
1
// ******************** Log Out ********************
2 2

  
3 3
export const logOut = async () => {
4 4

  
......
26 26
    }
27 27
}
28 28

  
29
// ******************** GET DATA APP getCurrentProfile ********************
30

  
29 31
export const getCurrentProfile = async () => {
30 32

  
31 33
  let response;

Také k dispozici: Unified diff