-
Notifications
You must be signed in to change notification settings - Fork 1
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 #27 from ITurres/feature/finish-final-touches-left…
…-overs Issue #25 🎫: Finish final touches left overs
- Loading branch information
Showing
26 changed files
with
588 additions
and
247 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
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,25 +1,28 @@ | ||
{ | ||
"short_name": "Tesla Booking", | ||
"name": "Tesla Booking App", | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#e82127", | ||
"background_color": "#e6e6e6", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"src": "tesla-red-logo-favicon.png", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
"type": "image/x-icon", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "logo192.png", | ||
"src": "tesla-apple-touch-icon.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
"sizes": "192x192", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "logo512.png", | ||
"src": "tesla-apple-touch-icon.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
"sizes": "512x512", | ||
"purpose": "any maskable" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
] | ||
} |
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,50 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
// * 'out-of-normal-flow' class is used to style the dialog when it is not centered | ||
// * this will place the dialog with an absolute position on the screen. | ||
|
||
import '../styles/components/DataStatusDialog.scss'; | ||
|
||
function DataStatusDialog({ | ||
isCentered, | ||
paragraph, | ||
strongText, | ||
status, | ||
reFetchFunction, | ||
}) { | ||
return ( | ||
<div | ||
className={`data-status-component ${ | ||
isCentered ? '' : 'out-of-normal-flow' | ||
}`} | ||
> | ||
<p> | ||
{paragraph} | ||
| ||
<strong>{strongText}</strong> | ||
</p> | ||
<h3>{status}</h3> | ||
<button type="button" className="btn" onClick={reFetchFunction}> | ||
Refresh | ||
</button> | ||
</div> | ||
); | ||
} | ||
|
||
DataStatusDialog.propTypes = { | ||
isCentered: PropTypes.bool, | ||
paragraph: PropTypes.string, | ||
strongText: PropTypes.string, | ||
status: PropTypes.string, | ||
reFetchFunction: PropTypes.func.isRequired, | ||
}; | ||
|
||
DataStatusDialog.defaultProps = { | ||
isCentered: false, | ||
paragraph: | ||
'The project database is currently hosted on Render.com and is in a dormant state. Kindly allow a few moments for the database to initialize and become active. ', | ||
strongText: | ||
'We appreciate your patience. Once the database is active, you will be able to see the updated list of vehicles, log in, register, and more.', | ||
status: 'Loading...', | ||
}; | ||
export default DataStatusDialog; |
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
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
Oops, something went wrong.