Skip to content

Commit

Permalink
fix(faq): update the link to the new page
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed May 4, 2024
1 parent cf9b8b1 commit ecdc2cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/components/Layout/SideBar/Meny.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export function Menu() {
</ProtectedItems>
<SidebarItem
path={path}
href="https://alemayhu.notion.site/FAQ-ef01be9c9bac41689a4d749127c14301"
href={getVisibleText('navigation.help.url')}
target="_blank"
>
{getVisibleText('navigation.help')}
</SidebarItem>
Expand Down
13 changes: 8 additions & 5 deletions src/components/Layout/SideBar/SidebarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ export interface SidebarItemProps {
href: string;
children: ReactNode;
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
target?: string,
}

export default function SidebarItem({
path,
href,
children,
onClick,
}: SidebarItemProps) {
target,
path,
href,
children,
onClick
}: SidebarItemProps) {
return (
<li>
<a
target={target ?? '_self'}
onClick={onClick}
className={`${path === href ? 'has-text-weight-bold is-active' : ''}`}
href={href}
Expand Down
1 change: 1 addition & 0 deletions src/lib/text/app.document.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"navigation.favorites": "⭐️Favorites",
"navigation.search": "🔍 Search",
"navigation.help": "🙋🏽‍♀️ FAQ",
"navigation.help.url": "https://docs.2anki.net/troubleshooting/faq/",
"navigation.logout": "🔒 log out",
"navigation.deleteAccount": "🗑️ Delete account",
"downloads.unfinished.jobs": "It might take a while for your download to be ready.",
Expand Down

0 comments on commit ecdc2cc

Please sign in to comment.