Skip to content

Commit ede47e6

Browse files
add icons and separator
1 parent 75054eb commit ede47e6

File tree

5 files changed

+54
-30
lines changed

5 files changed

+54
-30
lines changed

src/features/common/assets/download-icon.component.tsx

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,26 @@ import React from "react";
33
export const DownloadIconComponent: React.FC = () => {
44
return (
55
<svg
6-
width="18"
7-
height="18"
8-
viewBox="0 0 18 18"
6+
width="16"
7+
height="16"
8+
viewBox="0 0 16 16"
99
fill="none"
1010
xmlns="http://www.w3.org/2000/svg"
1111
>
1212
<path
13-
d="M2.25 12.75V15C2.25 15.8284 2.92157 16.5 3.75 16.5H14.25C15.0784 16.5 15.75 15.8284 15.75 15V12.75"
14-
stroke="#FBFBFB"
15-
strokeWidth="1.5"
16-
strokeLinecap="round"
17-
strokeLinejoin="round"
18-
/>
13+
d="M8 10V2M8 10L11 7M8 10L5 7"
14+
stroke="currentColor"
15+
stroke-width="1.5"
16+
stroke-linecap="round"
17+
stroke-linejoin="round"
18+
></path>
1919
<path
20-
d="M6 9L9 12L12 9"
21-
stroke="#FBFBFB"
22-
strokeWidth="1.5"
23-
strokeLinecap="round"
24-
strokeLinejoin="round"
25-
/>
26-
<path
27-
d="M9 1.5V12"
28-
stroke="#FBFBFB"
29-
strokeWidth="1.5"
30-
strokeLinecap="round"
31-
strokeLinejoin="round"
32-
/>
20+
d="M1 11V12C1 13.6569 2.34315 15 4 15H12C13.6569 15 15 13.6569 15 12V11"
21+
stroke="currentColor"
22+
stroke-width="1.5"
23+
stroke-linecap="round"
24+
stroke-linejoin="round"
25+
></path>
3326
</svg>
3427
);
3528
};

src/features/common/components/context-menu/context-menu.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,10 @@
5252
background-color: var(--color_bg_layer_alternate-bold);
5353
}
5454
}
55+
56+
.separator {
57+
width: 100%;
58+
height: 1px;
59+
background-color: var(--color_border_default);
60+
margin: 0.25rem 0;
61+
}

src/features/common/components/context-menu/context-menu.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import jwtLogoString from "@/public/img/jwt-logo.svg?raw";
77
import jwtSymbolString from "@/public/img/jwt-symbol.svg?raw";
88
import jwtWordmarkString from "@/public/img/jwt-wordmark.svg?raw";
99
import { Button } from "react-aria-components";
10-
import { a } from "vitest/dist/suite-dWqIFb_-.js";
10+
import { CopyIcon } from "../icons/copy/copy-icon";
11+
import { DownloadIconComponent } from "../../assets/download-icon.component";
1112

1213
interface ContextMenuProps {
1314
dictionary: BrandDictionaryModel;
@@ -46,48 +47,49 @@ const ContextMenu: FC<ContextMenuProps> = ({
4647
className={styles.menuItem}
4748
onPress={() => handleIconCopy(jwtLogoString)}
4849
>
49-
<div>icon</div>
50+
<CopyIcon />
5051
<span>{dictionary.menu.brand.svg.copyLabel}</span>
5152
</Button>
5253
<a
5354
className={styles.menuItem}
5455
href="/img/jwt-logo.svg"
5556
download="jwt-logo.svg"
5657
>
57-
<div>icon</div>
58+
<DownloadIconComponent />
5859
{dictionary.menu.brand.svg.downloadLabel}
5960
</a>
6061
<Button
6162
className={styles.menuItem}
6263
onPress={() => handleIconCopy(jwtSymbolString)}
6364
>
64-
<div>icon</div>
65+
<CopyIcon />
6566
<span>{dictionary.menu.brand.symbol.copyLabel}</span>
6667
</Button>
6768
<a
6869
className={styles.menuItem}
6970
href="/img/jwt-symbol.svg"
7071
download="jwt-symbol.svg"
7172
>
72-
<div>icon</div>
73+
<DownloadIconComponent />
7374
{dictionary.menu.brand.symbol.downloadLabel}
7475
</a>
7576
<Button
7677
className={styles.menuItem}
7778
onPress={() => handleIconCopy(jwtWordmarkString)}
7879
>
79-
<div>icon</div>
80+
<CopyIcon />
8081
<span>{dictionary.menu.brand.wordmark.copyLabel}</span>
8182
</Button>
8283
<a
8384
className={styles.menuItem}
8485
href="/img/jwt-wordmark.svg"
8586
download="jwt-wordmark.svg"
8687
>
87-
<div>icon</div>
88+
<DownloadIconComponent />
8889
{dictionary.menu.brand.wordmark.downloadLabel}
8990
</a>
9091
</div>
92+
<div className={styles.separator}></div>
9193
<div className={styles.groupLabel}>{dictionary.menu.tools.label}</div>
9294
{dictionary.menu.tools.items.map((el) => (
9395
<a className={styles.menuItem} key={el.url} href={el.url}>{el.label}</a>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export const CopyIcon = () => {
2+
return (
3+
<svg
4+
width="16"
5+
height="16"
6+
viewBox="0 0 16 16"
7+
fill="none"
8+
xmlns="http://www.w3.org/2000/svg"
9+
>
10+
<path
11+
d="M8 15H12C13.6569 15 15 13.6569 15 12V8C15 6.34315 13.6569 5 12 5H8C6.34315 5 5 6.34315 5 8V12C5 13.6569 6.34315 15 8 15Z"
12+
stroke="currentColor"
13+
strokeWidth="1.5"
14+
strokeLinecap="round"
15+
strokeLinejoin="round"
16+
></path>
17+
<path
18+
d="M8 0.25C9.33915 0.25 10.5138 0.952094 11.177 2.00819C11.4679 2.47151 11.0737 3 10.5266 3C10.2123 3 9.93488 2.81318 9.7352 2.57055C9.32304 2.06973 8.6994 1.75 8 1.75H4C2.75736 1.75 1.75 2.75736 1.75 4V8C1.75 8.69927 2.06986 9.32232 2.57062 9.73428C2.81326 9.93389 3 10.2113 3 10.5255C3 11.0726 2.47146 11.4669 2.00808 11.176C0.952101 10.513 0.25 9.33902 0.25 8V4C0.25 1.92893 1.92893 0.25 4 0.25H8Z"
19+
fill="currentColor"
20+
></path>
21+
</svg>
22+
);
23+
};

src/features/common/components/theme-picker/theme-picker.component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const ThemePickerComponent: React.FC<ThemePickerComponentProps> = ({
2727
data-active={selectedOptionCode === option.code}
2828
title={option.label}
2929
onClick={async () => {
30-
console.log(option.label)
3130
await handleSelection(option.code);
3231
}}
3332
>

0 commit comments

Comments
 (0)