mirror of
https://github.com/getredash/redash.git
synced 2026-03-21 16:00:09 -04:00
* Initial React Rendering with useDashboard
* Make sure widgets refresh + useCallback
* Rename collectFilters and add refreshRate
* Fix error updates not being rendered
* Only render widget bottom when queryResults exists
* Cleanup
* Add useCallback to refreshDashboard
* Make sure Promise.all have all promises done
* Start migrating Dashoard to React
- initial rendering
- some actions
- temporary updated less file
* Fullscreen handler added
* Separate refreshRateHandler hook
* Add a few tooltips
* Separate DashboardControl and normalize btn width
* Share Button
* Fix serach params not updating
* Enumerate More Options
* Toggle Publish options
* Archive Dashboard
* Parameters + Filters
* Prepare Manage Permissions
* Start to create edit mode
* Add Edit Mode functionalities
* Use previous state when updating dashboard
* Mobile adjustments
* PermissionsEditorDialog + Dashboard page title
* Update Dashboard spec
* Fix other specs
* Break dashboard.less
* Hide publish button on mobile
* Angular Cleaning
* Keep edit state when changing resolution
* Bug fix: Dashboard Level Filters not updating
* Remove prepareWidgetsForDashboard
* Revert "Remove prepareWidgetsForDashboard"
This reverts commit b434f03da1.
* Avoid saving layout changes out of editing mode
* Apply policy for enabled refresh rates
* Disable loadDashboard deps
* Restyled by prettier (#4459)
* Update title when dashboard name updates
Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com>
31 lines
619 B
JavaScript
31 lines
619 B
JavaScript
import React from "react";
|
|
import PropTypes from "prop-types";
|
|
|
|
function BigMessage({ message, icon, children, className }) {
|
|
return (
|
|
<div className={"p-15 text-center " + className}>
|
|
<h3 className="m-t-0 m-b-0">
|
|
<i className={"fa " + icon} />
|
|
</h3>
|
|
<br />
|
|
{message}
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
BigMessage.propTypes = {
|
|
message: PropTypes.string,
|
|
icon: PropTypes.string.isRequired,
|
|
children: PropTypes.node,
|
|
className: PropTypes.string,
|
|
};
|
|
|
|
BigMessage.defaultProps = {
|
|
message: "",
|
|
children: null,
|
|
className: "tiled bg-white",
|
|
};
|
|
|
|
export default BigMessage;
|