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

fix: adding exact in Route in the word search page ,letter, comment and report page #102

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion com-dict-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@testing-library/user-event": "^7.2.1",
"algoliasearch": "^4.3.1",
"antd": "^4.2.5",
"firebase": "^7.13.1",
"firebase": "^7.24.0",
"firebase-functions": "^3.8.0",
"puppeteer": "^5.2.1",
"react": "^16.13.1",
Expand Down
2 changes: 1 addition & 1 deletion com-dict-client/src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function TitleBar() {
key="profile"
>
<Menu.Item key="cat:0">
<Link to="/#">{user.displayName}</Link>
<Link to="/#">{user.email}</Link>
</Menu.Item>
<Menu.Item key="cat:0">
<Typography onClick={() => signOut()(firebase, history)}>
Expand Down
8 changes: 4 additions & 4 deletions com-dict-client/src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export default function Routes() {
<Route exact path="/" component={HomePage} />
<Route exact path="/signup" component={SignUp} />
<Route exact path="/browse" component={Browse} />
<Route path="/search/:language/:keyword" component={Search} />
<Route exact path="/search/:language/:keyword" component={Search} />
<Route exact path="/Categories" component={Categories} />
<PrivateRoute path="/add">
<AddWord />
</PrivateRoute>
<Route path="/letter" component={LetterBased} />
<Route path="/comment" component={CommentWord} />
<Route path="/report" component={Report} />
<Route exact path="/letter" component={LetterBased} />
<Route exact path="/comment" component={CommentWord} />
<Route exact path="/report" component={Report} />
</Router>
);
}
Expand Down