Skip to content

Commit

Permalink
Minor formatting, prettification and linting in prep for merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-next committed Oct 30, 2024
1 parent cc52b00 commit 1322c42
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 10 additions & 2 deletions static/js/apps/base/components/header_bar/menu_desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const MenuDesktop = ({
<a
className="menu-main-link"
href={resolveHref(menuItem.url, routes)}
onClick={() => {
onClick={(): boolean => {
triggerGAEvent(GA_EVENT_HEADER_CLICK, {
[GA_PARAM_ID]: `desktop main ${menuItem.id}`,
[GA_PARAM_URL]: menuItem.url,
Expand Down Expand Up @@ -131,7 +131,15 @@ const MenuDesktop = ({
openMenu === index ? "open" : ""
}`}
>
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#5f6368"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
fill="#5f6368"
>
<path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z" />
</svg>
</span>
</button>
<div
Expand Down
11 changes: 10 additions & 1 deletion static/js/components/content/topics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ const Topics = ({ topics }: TopicsProps): ReactElement => {
window.location.href = topic.browseUrl;
}}
>
<span className="icon"><svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px"><path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z"/></svg></span>
<span className="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewBox="0 -960 960 960"
width="24px"
>
<path d="M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z" />
</svg>
</span>
{topic.title}
</a>
</li>
Expand Down

0 comments on commit 1322c42

Please sign in to comment.