@redocly/theme 0.30.4 → 0.30.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const Product = ({ product, className }) => {
|
|
10
10
|
return (react_1.default.createElement(ProductWrapper, { "data-component-name": "Product/Product", className: className },
|
|
11
|
-
react_1.default.createElement(ProductLogo, { src: product.icon }),
|
|
11
|
+
product.icon && react_1.default.createElement(ProductLogo, { src: product.icon }),
|
|
12
12
|
react_1.default.createElement("span", null, product.name)));
|
|
13
13
|
};
|
|
14
14
|
exports.Product = Product;
|
package/lib/config.d.ts
CHANGED
|
@@ -239,7 +239,7 @@ declare const productConfigSchema: {
|
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
241
|
readonly additionalProperties: false;
|
|
242
|
-
readonly required: readonly ["name", "
|
|
242
|
+
readonly required: readonly ["name", "folder"];
|
|
243
243
|
};
|
|
244
244
|
declare const catalogFilterSchema: {
|
|
245
245
|
readonly type: "object";
|
|
@@ -713,7 +713,7 @@ export declare const themeConfigSchema: {
|
|
|
713
713
|
};
|
|
714
714
|
};
|
|
715
715
|
readonly additionalProperties: false;
|
|
716
|
-
readonly required: readonly ["name", "
|
|
716
|
+
readonly required: readonly ["name", "folder"];
|
|
717
717
|
};
|
|
718
718
|
};
|
|
719
719
|
readonly footer: {
|
package/lib/config.js
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ export type ProductProps = {
|
|
|
11
11
|
export const Product = ({ product, className }: ProductProps): JSX.Element | null => {
|
|
12
12
|
return (
|
|
13
13
|
<ProductWrapper data-component-name="Product/Product" className={className}>
|
|
14
|
-
<ProductLogo src={product.icon} />
|
|
14
|
+
{product.icon && <ProductLogo src={product.icon} />}
|
|
15
15
|
<span>{product.name}</span>
|
|
16
16
|
</ProductWrapper>
|
|
17
17
|
);
|
package/src/config.ts
CHANGED