Skip to content

Commit

Permalink
feat: added icons button #190
Browse files Browse the repository at this point in the history
  • Loading branch information
habdevs committed Sep 7, 2023
1 parent 1251485 commit d72ffb1
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 9 deletions.
5 changes: 4 additions & 1 deletion components/LeftPanel/LeftPanel.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
display: flex;
justify-content: center;
flex-direction: column;

.containerBtn{
display: flex;
gap: 0.5rem;
}
@media (max-width: 992px) {
flex: auto;
}
Expand Down
29 changes: 21 additions & 8 deletions components/LeftPanel/LeftPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { LeftPanelPropsI } from './LeftPanelProps';
import styles from './LeftPanel.module.scss';
import React from 'react';
import disputeIcon from 'public/images/disputeIcon.svg';
import hourglassIcon from 'public/images/hourglassIcon.svg'

export const LeftPanel: React.FC<LeftPanelPropsI> = ({
players,
Expand All @@ -30,14 +31,26 @@ export const LeftPanel: React.FC<LeftPanelPropsI> = ({
disabled={!isDisputAvailable}
onClick={onRunDisput}
/>
<CustomButton
size='sm'
color='transparent'
radius='sm'
text='Dispute Move'
image={disputeIcon.src}
imageSize='40'
/>
<div className={styles.containerBtn}>
<CustomButton
size='sm'
color='transparent'
radius='sm'
text='Init Timeout'
image={hourglassIcon.src}
imageSize='24'
imagePosition={"right"}
/>
<CustomButton
size='sm'
color='transparent'
radius='sm'
text='Dispute Move'
image={disputeIcon.src}
imageSize='24'
imagePosition={"right"}
/>
</div>
</div>
</div>
);
Expand Down
6 changes: 6 additions & 0 deletions public/images/hourglassIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d72ffb1

Please sign in to comment.