Skip to content

Commit

Permalink
Merge pull request #241 from AmakrushAI/main
Browse files Browse the repository at this point in the history
Removed Kalia Flow(for now)
  • Loading branch information
amit-s19 authored Mar 13, 2024
2 parents 1f36c23 + c8cd409 commit 0c1573c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion apps/amakrushi/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = withBundleAnalyzer(
ignoreBuildErrors: true,
},
compiler: {
removeConsole: false
removeConsole: true
},
i18n: {
locales: ['or', 'en'],
Expand Down
30 changes: 15 additions & 15 deletions apps/amakrushi/src/components/HomePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,15 @@ const HomePage: NextPage = () => {
width: '100%',
maxWidth: '500px',
}}>
<div className={styles.imgBtn} onClick={() => { context?.setKaliaClicked((props: boolean) => !props); }}>
<p>{t('label.kalia_status')}</p>
<div className={styles.imgBtn} onClick={() => {
sendMessage(t('label.weather_advisory'));
}}>
<p>{t('label.weather_advisory')}</p>
<Image
src={kaliaStatusImg}
width={80}
height={80}
alt="kaliastatus"
src={weatherAdvisoryImg}
width={50}
height={70}
alt="weatheradvisory"
/>
</div>
<div className={styles.imgBtn} onClick={() => {
Expand All @@ -396,17 +398,15 @@ const HomePage: NextPage = () => {
/>
</div>
</div>
<div className={styles.imgBtn} style={{ marginTop: '20px' }} onClick={() => {
sendMessage(t('label.weather_advisory'));
}}>
<p>{t('label.weather_advisory')}</p>
{/* <div className={styles.imgBtn} onClick={() => { context?.setKaliaClicked((props: boolean) => !props); }}>
<p>{t('label.kalia_status')}</p>
<Image
src={weatherAdvisoryImg}
width={50}
height={70}
alt="weatheradvisory"
src={kaliaStatusImg}
width={80}
height={80}
alt="kaliastatus"
/>
</div>
</div> */}
</div>
<div className={styles.voiceRecorder} ref={voiceRecorderRef}>
<RenderVoiceRecorder setInputMsg={setInputMsg} tapToSpeak={true} includeDiv={true} />
Expand Down
4 changes: 2 additions & 2 deletions apps/amakrushi/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ const App = ({ Component, pageProps }: AppProps) => {
console.log({ permissionPromise });
await updateUser(permissionPromise);
};

//
updateAndRequestPermission();
}
}, [isAuthenticated, updateUser]);

if (process.env.NODE_ENV === 'production') {
// globalThis.console.log = () => {};
globalThis.console.log = () => {};
}

// For install PWA dialog box
Expand Down

0 comments on commit 0c1573c

Please sign in to comment.