-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**What does this PR do?** A clear and concise description with your runway ticket url. Runway https://runway.powerhrg.com/backlog_items/PLAY-1528 This is the first implementation of the draw kit. Its like the dialog except it only goes on the side on the page **Screenshots:** Screenshots to visualize your addition/change ![screenshot-pr3686_playbook_beta_px_powerapp_cloud-2024_09_18-09_33_10](https://github.com/user-attachments/assets/d554bbc9-93d5-46d4-813d-491f2fb5c981) **How to test?** Steps to confirm the desired behavior: 1. Go to https://pr3686.playbook.beta.px.powerapp.cloud/kits/drawer/react 2. Click buttons #### Checklist: - [x] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [x] **DEPLOY** I have added the `milano` label to show I'm ready for a review. - [x] **TESTS** I have added test coverage to my code. --------- Co-authored-by: Nida Ghuman <[email protected]>
- Loading branch information
1 parent
7b75dbe
commit 81f360d
Showing
20 changed files
with
1,203 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react' | ||
import Icon from '../pb_icon/_icon' | ||
|
||
import { getAllIcons } from "../utilities/icons/allicons" | ||
|
||
type CloseIconProps = { | ||
onClose: () => void, | ||
} | ||
|
||
export const CloseIcon = (props: CloseIconProps): React.ReactElement => { | ||
const { onClose } = props | ||
const timesIcon = getAllIcons()["times"] | ||
return ( | ||
<div | ||
className="pb_dialog_close_icon" | ||
onClick={onClose} | ||
> | ||
<Icon | ||
className="svg-inline--fa" | ||
customIcon={timesIcon.icon as unknown as { [key: string]: SVGElement }} | ||
fixedWidth | ||
/> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.