From 6de22c4551a36598e3e25f192514f944d4c4c670 Mon Sep 17 00:00:00 2001 From: mushka Date: Sun, 2 Oct 2022 03:40:20 +0300 Subject: [PATCH] provided gallery view with theming --- .../client/src/pages/Home/InfoPanel/Body/styles/gallery.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/client/src/pages/Home/InfoPanel/Body/styles/gallery.js b/packages/client/src/pages/Home/InfoPanel/Body/styles/gallery.js index 4b73e711c5..8d1390fda9 100644 --- a/packages/client/src/pages/Home/InfoPanel/Body/styles/gallery.js +++ b/packages/client/src/pages/Home/InfoPanel/Body/styles/gallery.js @@ -1,11 +1,14 @@ import styled from "styled-components"; +import { Base } from "@docspace/components/themes"; + const StyledGalleryThumbnail = styled.div` box-sizing: border-box; width: 100%; height: 346px; overflow: hidden; - border: 1px solid #d0d5da; + border: ${(props) => + `solid 1px ${props.theme.infoPanel.gallery.borderColor}`}; border-radius: 6px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); @@ -15,4 +18,6 @@ const StyledGalleryThumbnail = styled.div` } `; +StyledGalleryThumbnail.defaultProps = { theme: Base }; + export { StyledGalleryThumbnail };