Skip to content

Commit

Permalink
feat: remove quick check in
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzmyr committed Feb 12, 2023
1 parent 1e0d7d6 commit 07b1a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
6 changes: 5 additions & 1 deletion src/constants/Config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as Updates from 'expo-updates';

export const MIN_TAG_LENGTH = 3;
export const MAX_TAG_LENGTH = 30;

Expand Down Expand Up @@ -35,4 +37,6 @@ export const ONE_SIGNAL_APP_ID = __DEV__ ?
export const TRACKING_ENABLED = !__DEV__;

export const CHANGELOG_URL = 'https://pixy.hellonext.co/embed/c?no_header=true'
export const FEEDBACK_FEATURES_URL = 'https://pixy.hellonext.co/embed/b/feedback?no_header=true'
export const FEEDBACK_FEATURES_URL = 'https://pixy.hellonext.co/embed/b/feedback?no_header=true'

export const IS_PROD = Updates.channel === 'production';
33 changes: 1 addition & 32 deletions src/screens/Calendar/CalendarFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import * as Updates from 'expo-updates';
import Button from "@/components/Button";
import { t } from "@/helpers/translation";
import useColors from "@/hooks/useColors";
import { useLogState } from "@/hooks/useLogs";
import { useNavigation } from "@react-navigation/native";
import dayjs from "dayjs";
import React from "react";
import { Text, View } from "react-native";
import { View } from "react-native";
import { PlusCircle } from "react-native-feather";
import { PromoCards } from "./PromoCards";
import { FeedbackBox } from "../LogList/FeedbackBox";
import { Armchair } from "lucide-react-native";

export const CalendarFooter = () => {
const colors = useColors();
Expand Down Expand Up @@ -54,34 +51,6 @@ export const CalendarFooter = () => {
}}
>{t('add_today_another_entry')}</Button>
)}

{Updates.channel !== 'production' && (
<>
<Button
type="secondary"
icon={<Armchair size={24} color={colors.secondaryButtonText} />}
onPress={() => {
navigation.navigate("LogCreate", {
dateTime: dayjs().toISOString(),
avaliableSteps: ['rating'],
});
}}
style={{
flex: 1,
marginTop: 8,
}}
>{t('quick_checkin')}</Button>

<FeedbackBox
emoji="📌"
prefix="beta_different_checkins"
style={{
marginTop: 16,
marginBottom: 0,
}}
/>
</>
)}
</View>
</View>
<PromoCards />
Expand Down

0 comments on commit 07b1a39

Please sign in to comment.