-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1433 from OneCommunityGlobal/development
Frontend Release to Main [2.95]
- Loading branch information
Showing
54 changed files
with
1,281 additions
and
179 deletions.
There are no files selected for viewing
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 +1 @@ | ||
# * text eol=lf | ||
* text eol=lf |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import axios from "axios"; | ||
|
||
import { ENDPOINTS } from "utils/URL"; | ||
import { SET_MATERIALS } from "constants/bmdashboard/materialsConstants"; | ||
import { GET_ERRORS } from "constants/errors"; | ||
|
||
export const fetchAllMaterials = () => { | ||
return async dispatch => { | ||
axios.get(ENDPOINTS.BM_MATERIALS_LIST) | ||
.then(res => { | ||
dispatch(setMaterials(res.data)) | ||
}) | ||
.catch(err => { | ||
dispatch(setErrors(err)) | ||
}) | ||
} | ||
} | ||
|
||
export const setMaterials = payload => { | ||
return { | ||
type: SET_MATERIALS, | ||
payload | ||
} | ||
} | ||
|
||
export const setErrors = payload => { | ||
return { | ||
type: GET_ERRORS, | ||
payload | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.header-wrapper { | ||
height: fit-content; | ||
width: clamp(100vw, 0.1rem + 1vw, 100%); | ||
} | ||
|
||
.navbar { | ||
z-index: 100; | ||
white-space: nowrap; | ||
} | ||
|
||
.timer-message-section { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
gap: 1rem; | ||
} | ||
|
||
.nav-links { | ||
align-items: center; | ||
} | ||
|
||
.redBackGroupHeader { | ||
z-index: 10; | ||
bottom: 0; | ||
right: 0; | ||
position: relative; | ||
height: 30px; | ||
text-align: center; | ||
vertical-align: middle; | ||
background: #ff4d4f; | ||
border-radius: 40px; | ||
color: #fff; | ||
padding: 3px 6px; | ||
max-width: 39px; | ||
font-size: 1rem; | ||
min-width: 29px; | ||
} | ||
|
||
.owner-message { | ||
margin-right: 3rem; | ||
} | ||
|
||
@media (max-width: 1500px) { | ||
.dashboard-text-link { | ||
font-size: 14px; | ||
} | ||
|
||
.owner-message { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
@media (max-width: 1400px) { | ||
.timer-message-section { | ||
display: flex; | ||
width: 0; | ||
margin-right: 0; | ||
} | ||
|
||
.owner-message { | ||
display: none; | ||
} | ||
} |
Oops, something went wrong.