Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a80fd93

Browse files
authored
fix(containers): update containers to fit ui-kitten 4.2
1 parent 44d1d83 commit a80fd93

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

src/components/social/feed/feedActivityBar.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class FeedActivityBarComponent extends React.Component<FeedActivityBarProps> {
6767
<Button
6868
style={themedStyle.addButton}
6969
textStyle={textStyle.button}
70+
appearance='ghost'
7071
size='giant'
71-
status='white'
7272
icon={this.renderAddIcon}
7373
onPress={this.onAddButtonPress}>
7474
Add Training

src/containers/components/button/button.container.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Showcase } from '../common/showcase.component';
55
import { ShowcaseSection } from '../common/showcaseSection.component';
66
import { ShowcaseItem } from '../common/showcaseItem.component';
77
import {
8+
BasicButton,
89
DangerButton,
910
DefaultButton,
1011
DisabledButton,
@@ -22,7 +23,6 @@ import {
2223
SuccessButton,
2324
TinyButton,
2425
WarningButton,
25-
WhiteButton,
2626
} from './showcase';
2727

2828
export class ButtonContainer extends React.Component<NavigationStackScreenProps> {
@@ -90,8 +90,8 @@ export class ButtonContainer extends React.Component<NavigationStackScreenProps>
9090
<ShowcaseItem title='Danger'>
9191
<DangerButton style={styles.component}/>
9292
</ShowcaseItem>
93-
<ShowcaseItem title='White'>
94-
<WhiteButton style={styles.component}/>
93+
<ShowcaseItem title='Basic'>
94+
<BasicButton style={styles.component}/>
9595
</ShowcaseItem>
9696
</ShowcaseSection>
9797
</Showcase>

src/containers/components/button/showcase/whiteButton.component.tsx renamed to src/containers/components/button/showcase/basicButton.component.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import {
66

77
type ButtonElement = React.ReactElement<ButtonProps>;
88

9-
export const WhiteButton = (props?: ButtonProps): ButtonElement => {
9+
export const BasicButton = (props?: ButtonProps): ButtonElement => {
1010
return (
1111
<Button
12-
status='white'
12+
status='basic'
1313
{...props}>
1414
BUTTON
1515
</Button>

src/containers/components/button/showcase/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export { SuccessButton } from './successButton.component';
1515
export { InfoButton } from './infoButton.component';
1616
export { WarningButton } from './warningButton.component';
1717
export { DangerButton } from './dangerButton.component';
18-
export { WhiteButton } from './whiteButton.component';
18+
export { BasicButton } from './basicButton.component';

src/containers/layouts/articles/articleList4/articleList4.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ArticleList4Component extends React.Component<ArticleList4Props> {
8989
<Button
9090
style={themedStyle.readButton}
9191
textStyle={textStyle.button}
92-
status='white'
92+
status='control'
9393
onPress={this.onReadButtonPress}>
9494
READ
9595
</Button>

src/containers/layouts/auth/signIn5/signIn5.component.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class SignIn5Component extends React.Component<SignIn5Props, State> {
117117
</Text>
118118
</View>
119119
<TabView
120-
style={themedStyle.tabView}
121120
tabBarStyle={themedStyle.tabBar}
122121
indicatorStyle={themedStyle.tabViewIndicator}
123122
selectedIndex={this.state.selectedTabIndex}
@@ -181,10 +180,10 @@ export const SignIn5 = withStyles(SignIn5Component, (theme: ThemeType) => ({
181180
},
182181
tabContentContainer: {
183182
marginVertical: 8,
183+
paddingHorizontal: 16,
184184
},
185185
tabView: {
186186
flex: 1,
187-
paddingHorizontal: 16,
188187
},
189188
tabBar: {
190189
backgroundColor: 'transparent',

src/containers/layouts/social/profile7/profile7.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class Profile7Component extends React.Component<Profile7Props> {
112112
<Button
113113
style={themedStyle.messageButton}
114114
textStyle={textStyle.button}
115-
status='white'
115+
status='control'
116116
icon={MessageCircleIconFill}
117117
onPress={this.onMessagePress}>
118118
MESSAGE

0 commit comments

Comments
 (0)