Browse
For agents
About
GiveWP – Donation Plugin and Fundraising Platform
/
4.15.3
GiveWP – Donation Plugin and Fundraising Platform
v4.15.3
Switch version
4.17.0
4.16.9
4.16.8.1
4.16.8
4.16.7.2
4.16.7.1
4.16.7
4.16.6.1
4.16.6
4.16.5.1
4.16.5
4.16.4
4.16.3
4.16.2
4.16.1
4.16.0
4.15.5
4.15.4
4.15.3
4.15.2
4.15.1
4.15.0
2.3.0
2.3.1
2.3.2
All 256 releases
Overview
Code
give
/
src
/
DonorDashboards
/
resources
/
js
/
app
/
components
/
auth
/
index.js
index.js
in GiveWP – Donation Plugin and Fundraising Platform 4.15.3, at src/DonorDashboards/resources/js/app/components/auth/index.js
21 lines
431 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
import
{
isLoggedIn
}
from
'
../../utils
'
;
2
3
import
AuthModal
from
'
../auth-modal
'
;
4
5
import
'
./style.scss
'
;
6
7
const
Auth
=
(
{
children
}
)
=>
{
8
const
loggedIn
=
isLoggedIn
(
)
;
9
10
return
!
loggedIn
?
(
11
<
div
className
=
"
give-donor-dashboard__auth
"
>
12
<
AuthModal
/>
13
<
div
className
=
"
give-donor-dashboard__auth-wrapper
"
>
{
children
}
</
div
>
14
</
div
>
15
)
:
(
16
children
17
)
;
18
}
;
19
20
export
default
Auth
;
21