Skip to content

Commit d043c93

Browse files
Nwagba OkechukwuNwagba Okechukwu
authored andcommitted
refactor: move playIcon style into card
1 parent 836a51b commit d043c93

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

package/src/components/Attachment/Card.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const CardWithContext = <
133133

134134
const {
135135
theme: {
136-
colors: { accent_blue, black, blue_alice, transparent },
136+
colors: { accent_blue, black, blue_alice, transparent, white },
137137
imageGallery: {
138138
videoControl: { roundedView },
139139
},
@@ -148,8 +148,6 @@ const CardWithContext = <
148148
cover,
149149
footer: { description, title: titleStyle, ...footerStyle },
150150
noURI,
151-
},
152-
content: {
153151
playIcon: { height, pathFill, width },
154152
},
155153
},

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ export type Theme = {
377377
title: TextStyle;
378378
};
379379
noURI: ViewStyle;
380+
playIcon: IconProps;
380381
};
381382
container: ViewStyle;
382383
content: {
@@ -401,7 +402,6 @@ export type Theme = {
401402
messageUser: TextStyle;
402403
metaContainer: ViewStyle;
403404
metaText: TextStyle;
404-
playIcon: IconProps;
405405
replyBorder: ViewStyle;
406406
replyContainer: ViewStyle;
407407
textContainer: ViewStyle & {
@@ -860,6 +860,11 @@ export const defaultTheme: Theme = {
860860
borderLeftWidth: 2,
861861
paddingLeft: 8,
862862
},
863+
playIcon: {
864+
height: 24,
865+
pathFill: '#000',
866+
width: 24,
867+
},
863868
},
864869
container: {},
865870
content: {
@@ -910,11 +915,6 @@ export const defaultTheme: Theme = {
910915
metaText: {
911916
fontSize: 12,
912917
},
913-
playIcon: {
914-
height: 24,
915-
pathFill: '#000',
916-
width: 24,
917-
},
918918
replyBorder: {},
919919
replyContainer: {},
920920
textContainer: {

0 commit comments

Comments
 (0)