Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome extension #1

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

Chrome extension #1

wants to merge 6 commits into from

Conversation

vashnavichauhan1825
Copy link
Owner

@netlify
Copy link

netlify bot commented Sep 20, 2022

Deploy Preview for gleaming-sunshine-5cea24 failed.

Name Link
🔨 Latest commit dc8d107
🔍 Latest deploy log https://app.netlify.com/sites/gleaming-sunshine-5cea24/deploys/632a3c55bfe3f30008a7446f

@netlify
Copy link

netlify bot commented Sep 20, 2022

Deploy Preview for vaspacx-chrome-ext ready!

Name Link
🔨 Latest commit dc8d107
🔍 Latest deploy log https://app.netlify.com/sites/vaspacx-chrome-ext/deploys/632a3c55eb7c890009c13835
😎 Deploy Preview https://deploy-preview-1--vaspacx-chrome-ext.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link

@dev-enforced dev-enforced left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The live preview hosted on Netlify is working well code structure looks good and easy to understand

  1. Awesome use of barrel exports and imports for importing multiple components and styles in a single line. Still at some more places can use it do check the codebase once to make sure of it.
  2. Remove commented useEffect based code and debuggers like console logs for checking the output.
  3. Good use of Animation libraries while developing landing page of the project👏🏻💯. Styled components reduced the abstraction while writing down components completely minimizing the use of CSS selectors
  4. Got to see a new approach of using redux toolkit along with managing local storage based variables with useEffect hook.

Awesome work on the extension Vashnavi. Got to learn & of course ask a lot🙂💯🚀

import { getDataActions } from "../store/extData";

const MainPage = () => {
const dateValue = useSelector((state) => state.extData.dateStore.date);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can write it altogether using object destructing as

const {dateStore:{date,month,year},flag} = useSelector((state)=>state.extData)

DetailContainer,
UpperBox,
} from "../components";
import SpecialCountdown from "../components/CountDown";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use barrel exports for components from L11-L19.

city !== null
? `q=${city}`
: `lat=${coordinates.latitude}&lon=${coordinates.longitude}`
}&appid=021cbeb6524e6c10b8d5ac497d7e73a3`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can store this private data in an env variable otherwise the weather component might not work properly due to misuse of secret API key.

@@ -1,8 +1,15 @@
import { useSelector } from "react-redux";
import { BgWrapper, GlobalStyle } from "./components";
import MainPage from "./page/MainPage";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use barrel exports here too.

Copy link

@srishtigautam21 srishtigautam21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to merge

Copy link

@ashishkatiyar2404 ashishkatiyar2404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work vashnavi.
Looks good to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants