Skip to content

Commit

Permalink
notifications in navBar
Browse files Browse the repository at this point in the history
  • Loading branch information
erinz2020 committed Mar 12, 2024
1 parent ada2cdc commit e22b4e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added frontend/public/signin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function NavBar () {
}}
onClick={logout}>Logout
</Button>
<NotificationButton count = {1} backgroundColor={backgroundColor}/>
<NotificationButton count = {1} />
<MultiLanguageDropdown />
<Nav style={{ alignItems: 'center', marginLeft: '20px' }}>
<NavDropdown title={<Avatar />} id="basic-nav-dropdown">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/navBar/NotificationButton.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Button, Badge } from 'react-bootstrap';
import { Bell } from 'react-bootstrap-icons'; // 确保安装了react-bootstrap-icons
import { Bell } from 'react-bootstrap-icons';

const NotificationButton = ({ count }) => {

Expand All @@ -9,7 +9,7 @@ const NotificationButton = ({ count }) => {
minWidth: '35px',
}}>
<Button style={{
backgroundColor: 'rgba(255, 255, 255, 0.2)',
backgroundColor: 'rgba(255, 255, 255, 0.25)',
border: 'none',
borderRadius: '50%',
minWidth: '35px',
Expand Down

0 comments on commit e22b4e8

Please sign in to comment.