Skip to content

Commit

Permalink
Do minor improvement to log and file selection
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulyadav-57 committed Nov 9, 2023
1 parent ce0b325 commit 10c5c51
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/components/ui/icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { BsFillPlayFill } from 'react-icons/bs';
import { FaRegClone } from 'react-icons/fa';
import { FiEdit2, FiEye } from 'react-icons/fi';
import { GoTriangleRight } from 'react-icons/go';
import { GrClear } from 'react-icons/gr';
import { HiDocumentText } from 'react-icons/hi';
import { MdFeedback } from 'react-icons/md';

Expand Down Expand Up @@ -55,7 +56,8 @@ export type AppIconType =
| 'Info'
| 'Build'
| 'Rocket'
| 'Eye';
| 'Eye'
| 'Clear';

export interface AppIconInterface {
name: AppIconType;
Expand Down Expand Up @@ -88,6 +90,7 @@ const Components = {
Build,
Rocket,
Eye: FiEye,
Clear: GrClear,
};

const AppIcon: FC<AppIconInterface> = ({ name, className = '' }) => {
Expand Down
5 changes: 5 additions & 0 deletions src/components/workspace/BottomPanel/BottomPanel.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
width: 2rem;
height: 2rem;
justify-content: center;
.icon {
path {
stroke: #fff;
}
}
&:hover {
background-color: var(--grey);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/workspace/BottomPanel/BottomPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const BottomPanel: FC = () => {
/> */}
<Tooltip title="Clear log" placement="left">
<span className={s.clearLog} onClick={clearLog}>
<AppIcon name="Delete" />
<AppIcon name="Clear" className={s.icon} />
</span>
</Tooltip>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/components/workspace/ExecuteFile/ExecuteFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ const ExecuteFile: FC<Props> = ({
<div className={s.root}>
{description && <p className={s.desc}>{description}</p>}
<Select
placeholder="Select a file"
notFoundContent="Required file not found"
allowClear
showSearch
className="w-100"
Expand Down

0 comments on commit 10c5c51

Please sign in to comment.