Skip to content

Commit

Permalink
add button to open file in finder from full file view (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiya1155 committed Mar 30, 2023
1 parent 59e7d98 commit 34fb1fa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useContext } from 'react';
import { DropdownWithIcon } from '../../components/Dropdown';
import { DropdownWithIcon } from '../Dropdown';
import { MenuItemType } from '../../types/general';
import { getFileManagerName, isWindowsPath, splitPath } from '../../utils';
import { MoreHorizontal } from '../../icons';
Expand Down
23 changes: 14 additions & 9 deletions client/src/pages/ResultFull/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Skeleton from '../../components/Skeleton';
import useAppNavigation from '../../hooks/useAppNavigation';
import { FileTreeFileType } from '../../types';
import { getFileName } from '../../utils/file';
import FileMenu from '../../components/FileMenu';

type Props = {
data: any;
Expand Down Expand Up @@ -148,15 +149,19 @@ const ResultFull = ({ data }: Props) => {
path={result.relativePath}
/>
</div>
<div className="flex gap-2">
{/*<SelectToggleButton onlyIcon title="Star">*/}
{/* <Star />*/}
{/*</SelectToggleButton>*/}
{/*<Button variant="primary" onClick={() => setShareOpen(true)}>*/}
{/* Share*/}
{/* <ArrowBoxOut />*/}
{/*</Button>*/}
</div>
{/*<div className="flex gap-2">*/}
{/*<SelectToggleButton onlyIcon title="Star">*/}
{/* <Star />*/}
{/*</SelectToggleButton>*/}
{/*<Button variant="primary" onClick={() => setShareOpen(true)}>*/}
{/* Share*/}
{/* <ArrowBoxOut />*/}
{/*</Button>*/}
{/*</div>*/}
<FileMenu
relativePath={result.relativePath}
repoPath={result.repoPath}
/>
</div>
<div className="overflow-scroll flex-1">
{/*<div*/}
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/ResultModal/Subheader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import FileIcon from '../../components/FileIcon';
import BreadcrumbsPath from '../../components/BreadcrumbsPath';
import FileMenu from './FileMenu';
import FileMenu from '../../components/FileMenu';

type Props = {
relativePath: string;
Expand Down

0 comments on commit 34fb1fa

Please sign in to comment.