From 47170abb53b2ccf72f60a82633f2de5f5fa0d583 Mon Sep 17 00:00:00 2001 From: thecodrr Date: Wed, 11 Mar 2020 11:07:27 +0500 Subject: [PATCH] fix: favorites note appearing --- apps/web/src/app.js | 3 +++ apps/web/src/components/animated/index.js | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 apps/web/src/components/animated/index.js diff --git a/apps/web/src/app.js b/apps/web/src/app.js index 57ef9e28d..4b0541756 100644 --- a/apps/web/src/app.js +++ b/apps/web/src/app.js @@ -141,6 +141,9 @@ function App() { setShow(!show); return; } + if (item.onClick) { + return item.onClick(); + } if (RootNavigator.navigate(item.key)) { setSelectedKey(item.key); } diff --git a/apps/web/src/components/animated/index.js b/apps/web/src/components/animated/index.js new file mode 100644 index 000000000..c24762339 --- /dev/null +++ b/apps/web/src/components/animated/index.js @@ -0,0 +1,9 @@ +import { motion } from "framer-motion"; +import * as Rebass from "rebass"; + +export default { + Flex: motion.custom(Rebass.Flex), + Box: motion.custom(Rebass.Box), + Image: motion.custom(Rebass.Image), + Text: motion.custom(Rebass.Text) +};