mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
* DynamicComponent for QuerySourceAlerts * General Settings updates * Dynamic Date[Range] updates * EmptyState updates * Query and SchemaBrowser updates * Adjust page headers and add disablePublish * Policy updates * Separate Home FavoritesList component * Update FormatQuery * Autolimit frontend fixes * Misc updates * Keep registering of QuerySourceDropdown * Undo changes in DynamicComponent * Change sql-formatter package.json syntax * Allow opening help trigger in new tab * Don't run npm commands as root in Dockerfile * Cypress: Remove extra execute query
27 lines
564 B
JavaScript
27 lines
564 B
JavaScript
import React from "react";
|
|
import Button from "antd/lib/button";
|
|
|
|
function DefaultLinkComponent(props) {
|
|
return <a {...props} />; // eslint-disable-line jsx-a11y/anchor-has-content
|
|
}
|
|
|
|
function Link(props) {
|
|
return <Link.Component {...props} />;
|
|
}
|
|
|
|
Link.Component = DefaultLinkComponent;
|
|
|
|
function DefaultButtonLinkComponent(props) {
|
|
return <Button role="button" {...props} />;
|
|
}
|
|
|
|
function ButtonLink(props) {
|
|
return <ButtonLink.Component {...props} />;
|
|
}
|
|
|
|
ButtonLink.Component = DefaultButtonLinkComponent;
|
|
|
|
Link.Button = ButtonLink;
|
|
|
|
export default Link;
|