Skip to content

Commit

Permalink
fix: [#174953297] Reminder CTA label is wrong localized (#2222)
Browse files Browse the repository at this point in the history
Co-authored-by: fabriziofff <[email protected]>
  • Loading branch information
Undermaken and fabriziofff authored Sep 25, 2020
1 parent 3627ac9 commit 0e38164
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ts/components/messages/CalendarEventButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ type State = Readonly<{

const screenWidth = Dimensions.get("window").width;
const minScreenWidth = 320;
// On small devices use short label
const reminderText = I18n.t(
screenWidth <= minScreenWidth
? "messages.cta.reminderShort"
: "messages.cta.reminder"
);

const styles = StyleSheet.create({
button: {
Expand Down Expand Up @@ -318,6 +312,12 @@ class CalendarEventButton extends React.PureComponent<Props, State> {
};

public render() {
// On small devices use short label
const reminderText = I18n.t(
screenWidth <= minScreenWidth
? "messages.cta.reminderShort"
: "messages.cta.reminder"
);
const { small, disabled, medium } = this.props;
const iconName = this.state.isEventInDeviceCalendar
? "io-tick-big"
Expand Down

0 comments on commit 0e38164

Please sign in to comment.