mirror of
https://github.com/getredash/redash.git
synced 2026-05-13 16:01:20 -04:00
Introduce Link component (#5122)
* Introduce Link component * Use Link component for external links as well * Remove unused file (I hope it's really not needed) * Use Link component in visualizations library * Simplify Link component implementation * CR1 * Trigger build * CR2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
import { pick } from "lodash";
|
||||
import HelpTrigger from "@/components/HelpTrigger";
|
||||
import Link from "@/components/Link";
|
||||
import { Renderer as VisRenderer, Editor as VisEditor, updateVisualizationsSettings } from "@redash/viz/lib";
|
||||
import { clientConfig } from "@/services/auth";
|
||||
|
||||
@@ -11,6 +12,7 @@ function wrapComponentWithSettings(WrappedComponent) {
|
||||
return function VisualizationComponent(props) {
|
||||
updateVisualizationsSettings({
|
||||
HelpTriggerComponent: HelpTrigger,
|
||||
LinkComponent: Link,
|
||||
choroplethAvailableMaps: {
|
||||
countries: {
|
||||
name: "Countries",
|
||||
|
||||
Reference in New Issue
Block a user