Revert "Added optional boxed styling for information widgets and refactored information widgets"
This commit is contained in:
1 parent
347761fcad
commit
6b2930ab8d
35 files changed
+854
-642
No files matched your search
@@ -17,13 +17,13 @@ const widgetMappings = {
|
||||
kubernetes: dynamic(() => import("components/widgets/kubernetes/kubernetes")),
|
||||
};
|
||||
|
||||
export default function Widget({ widget, style }) {
|
||||
export default function Widget({ widget }) {
|
||||
const InfoWidget = widgetMappings[widget.type];
|
||||
|
||||
if (InfoWidget) {
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<InfoWidget options={{ ...widget.options, style }} />
|
||||
<InfoWidget options={widget.options} />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user