File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,14 @@ const Text = styled(Typography)`
2828 user-select: none;
2929` ;
3030
31- const CenteredImage : React . FC < { src : string ; caption ?: string } > = ( { src, caption } ) => (
32- < Fill >
31+ interface CenteredImageProps {
32+ src : string ;
33+ caption ?: string ;
34+ className ?: string ;
35+ }
36+
37+ const CenteredImage : React . FC < CenteredImageProps > = ( { src, caption, className } ) => (
38+ < Fill className = { className } >
3339 < Wrapper >
3440 < Image src = { src } />
3541 < Text variant = "body_short_italic" > { caption } </ Text >
Original file line number Diff line number Diff line change 1+ import styled from "styled-components" ;
12import icon from "@/assets/VGH.gif" ;
23import CenteredImage from "@/components/CenteredImage" ;
34
4- const Working = ( ) => < CenteredImage src = { icon } caption = "Working..." /> ;
5+ const BlendedWorking = styled ( CenteredImage ) `
6+ mix-blend-mode: multiply;
7+ ` ;
8+
9+ const Working = ( ) => < BlendedWorking src = { icon } caption = "Working..." /> ;
510
611export default Working ;
You can’t perform that action at this time.
0 commit comments