Skip to content

Commit 1d539bb

Browse files
Nwagba OkechukwuNwagba Okechukwu
authored andcommitted
refactor: remove imageGallary.videoControl style with card.playButtonStyle
1 parent b98c5e7 commit 1d539bb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

package/src/components/Attachment/Card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ const CardWithContext = <
133133
const {
134134
theme: {
135135
colors: { accent_blue, black, blue_alice, transparent, white },
136-
imageGallery: {
137-
videoControl: { roundedView },
138-
},
139136
messageSimple: {
140137
card: {
141138
authorName,
@@ -147,6 +144,7 @@ const CardWithContext = <
147144
cover,
148145
footer: { description, title: titleStyle, ...footerStyle },
149146
noURI,
147+
playButtonStyle: { roundedView },
150148
playIcon: { height, width },
151149
},
152150
},

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ export type Theme = {
377377
title: TextStyle;
378378
};
379379
noURI: ViewStyle;
380+
playButtonStyle: {
381+
durationTextStyle: TextStyle;
382+
roundedView: ViewStyle;
383+
videoContainer: ViewStyle;
384+
};
380385
playIcon: IconProps;
381386
};
382387
container: ViewStyle;
@@ -860,6 +865,11 @@ export const defaultTheme: Theme = {
860865
borderLeftWidth: 2,
861866
paddingLeft: 8,
862867
},
868+
playButtonStyle: {
869+
durationTextStyle: {},
870+
roundedView: {},
871+
videoContainer: {},
872+
},
863873
playIcon: {
864874
height: 24,
865875
width: 24,

0 commit comments

Comments
 (0)