Skip to content

Commit

Permalink
Add type to authReducer in Greetings
Browse files Browse the repository at this point in the history
  • Loading branch information
anastr0 committed Jan 25, 2021
1 parent 413114d commit 72594ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Greetings.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from "react";
import { useSelector } from "react-redux";
import { Button, Row, Col, Card } from "react-bootstrap";
import { RootState } from "src/store/store";

const Greetings = (): JSX.Element => {
const displayName = useSelector((state) => state.authReducer.displayName);
const displayMail = useSelector((state) => state.authReducer.username);
const displayName = useSelector((state: RootState) => state.authReducer.displayName);
const displayMail = useSelector((state: RootState) => state.authReducer.username);
return (
<div id="maingreeting" className="py-3 my-1 ">
<Row className="py-2">
Expand Down

1 comment on commit 72594ba

@vercel
Copy link

@vercel vercel bot commented on 72594ba Jan 25, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.