Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Accept react nodes as label

dominik-zeglen8c8b7303cb72
diff --git a/saleor/static/dashboard-next/components/ControlledCheckbox.tsx b/saleor/static/dashboard-next/components/ControlledCheckbox.tsx
index ffbf554814..b889fa1370 100644
--- a/saleor/static/dashboard-next/components/ControlledCheckbox.tsx
+++ b/saleor/static/dashboard-next/components/ControlledCheckbox.tsx
@@ -4,7 +4,7 @@ import * as React from "react";
interface ControlledCheckboxProps {
name: string;
- label?: string;
+ label?: React.ReactNode;
checked: boolean;
disabled?: boolean;
onChange(event: any);