Skip to content

Commit

Permalink
change logout icon
Browse files Browse the repository at this point in the history
  • Loading branch information
huangrandy committed Jan 14, 2024
1 parent 8132e0e commit b414841
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-firebase-hooks": "^5.1.1",
"react-icons": "^5.0.1",
"react-joyride": "^2.7.2",
"react-router": "^6.21.2",
"react-router-dom": "^6.21.2",
Expand All @@ -25,7 +26,7 @@
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"start": "react-scripts start",
"build": "CI=false react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
Expand Down Expand Up @@ -54,4 +55,4 @@
"last 1 safari version"
]
}
}
}
22 changes: 12 additions & 10 deletions src/components/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import { useNavigate } from "react-router";
import "./Dashboard.css";
import { Button, ConfigProvider, Dropdown, Space, Form, Input, Layout, Menu, Modal, Select, Image, theme } from "antd";
import { DownOutlined } from '@ant-design/icons';
import { BiLogOut } from "react-icons/bi";

import Joyride from 'react-joyride';
import {
Expand Down Expand Up @@ -196,14 +196,14 @@ function Dashboard() {
return;
}
RequestUtils.get('/retrieve?id=' + user.uid).then((response) => response.json())
.then((data) => {
console.log(data)
if (data.status == 200) {
setSignup(false);
} else {
setSignup(true);
}
});
.then((data) => {
console.log(data)
if (data.status == 200) {
setSignup(false);
} else {
setSignup(true);
}
});

});

Expand Down Expand Up @@ -439,7 +439,7 @@ function Dashboard() {
},
{
key: "4",
icon: <LogoutOutlined />,
icon: <BiLogOut style={{rotate:180}} />,
label: "Logout",
onClick: () => {
logout();
Expand All @@ -462,7 +462,9 @@ function Dashboard() {
height: 0,
}}
>
<Menu>

</Menu>
</Header>
<Content
style={{
Expand Down

0 comments on commit b414841

Please sign in to comment.