-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
187 additions
and
103 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { createContext, useContext, useReducer } from 'react'; | ||
import {createContext, useContext, useReducer} from 'react'; | ||
|
||
export const StoreContext = createContext(); | ||
|
||
export const StoreProvider = ( { reducer, initialState, children } ) =>( | ||
<StoreContext.Provider value={ useReducer( reducer, initialState ) }> | ||
{ children } | ||
</StoreContext.Provider> | ||
export const StoreProvider = ({reducer, initialState, children}) => ( | ||
<StoreContext.Provider value={useReducer(reducer, initialState)}>{children}</StoreContext.Provider> | ||
); | ||
|
||
export const useStoreValue = () => useContext( StoreContext ); | ||
export const useStoreValue = () => useContext(StoreContext); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,86 @@ | ||
.givewp-reports-widget-container { | ||
position: relative; | ||
height: auto; | ||
width: 100%; | ||
position: relative; | ||
height: auto; | ||
width: 100%; | ||
} | ||
|
||
#givewp_reports_widget { | ||
background: rgb(249, 249, 249); | ||
background: rgb(249, 249, 249); | ||
|
||
.inside { | ||
margin-top: 0; | ||
} | ||
.inside { | ||
margin-top: 0; | ||
padding: 0; | ||
} | ||
} | ||
|
||
a.givewp-reports-link { | ||
float: right; | ||
height: 100%; | ||
font-size: 14px; | ||
text-decoration: none !important; | ||
margin: 0; | ||
float: right; | ||
height: 100%; | ||
font-size: 14px; | ||
text-decoration: none !important; | ||
margin: 0; | ||
} | ||
|
||
|
||
#dashboard-widgets { | ||
.givewp-reports-widget-overlay { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100%; | ||
min-width: 100%; | ||
background: rgba(229, 229, 229, 0.45); | ||
z-index: 999; | ||
} | ||
|
||
.givewp-reports-widget-overlay-content { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1.25rem; | ||
background: #ffffff; | ||
width: 20rem; | ||
padding: 1.5rem; | ||
box-shadow: 0px 4px 8px rgba(14, 14, 14, 0.15); | ||
border-radius: 4px; | ||
font-family: 'SF Pro Text', sans-serif; | ||
|
||
&-title { | ||
text-align: center; | ||
font-size: 1.125rem; | ||
font-weight: 700; | ||
line-height: 1.5rem; | ||
color: #0E0E0E; | ||
padding: 0 1rem; | ||
margin: 0; | ||
} | ||
|
||
p { | ||
flex-grow: 1; | ||
padding: 0; | ||
margin: 0; | ||
font-size: 0.8125rem; | ||
font-weight: 500; | ||
color: #404040; | ||
line-height: 20px; | ||
} | ||
|
||
a { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 0.5625rem; | ||
background: #459948; | ||
cursor: pointer; | ||
color: #F2F9FF; | ||
padding: .5rem 1rem; | ||
text-decoration: none; | ||
font-weight: 500; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters