Skip to content

Commit

Permalink
#495 add caret down icon
Browse files Browse the repository at this point in the history
  • Loading branch information
oleojake committed Nov 5, 2024
1 parent 6052d75 commit 54d1e14
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/common/components/icons/caret-down-icon.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export const CaretDown = () => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1.2em"
height="1.2em"
viewBox="0 0 256 256"
>
<path
fill="currentColor"
d="m213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80A8 8 0 0 1 48 88h160a8 8 0 0 1 5.66 13.66"
/>
</svg>
);
};
1 change: 1 addition & 0 deletions src/common/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export * from './copy-icon.component';
export * from './paste-icon.component';
export * from './delete-icon.component';
export * from './pencil-icon.component';
export * from './caret-down-icon.component';
2 changes: 2 additions & 0 deletions src/pods/thumb-pages/components/thumb-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { createRef, useRef } from 'react';
import { Layer, Stage } from 'react-konva';
import { ThumbPageContextMenu } from './context-menu';
import { useContextMenu } from '../use-context-menu-thumb.hook';
import { CaretDown } from '@/common/components/icons';
import classes from './thumb-page.module.css';

interface Props {
Expand Down Expand Up @@ -61,6 +62,7 @@ export const ThumbPage: React.FunctionComponent<Props> = props => {
})}
</Layer>
</Stage>
<CaretDown />
{showContextMenu && (
<ThumbPageContextMenu
contextMenuRef={contextMenuRef}
Expand Down

0 comments on commit 54d1e14

Please sign in to comment.