-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add View Consultation Button #9296
Merged
rithviknishad
merged 42 commits into
ohcnetwork:develop
from
JavidSumra:issues/9272/view-live-consultation-btn
Dec 23, 2024
Merged
Changes from 36 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7a30b4f
Add View Consultation Button
JavidSumra 2e50a17
Chnge Redirect Link
JavidSumra a17c312
Merge branch 'develop' of https://github.com/JavidSumra/care_fe into …
JavidSumra d8412f5
Add Requeted Changes
JavidSumra a2c8a1e
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra aa4d41b
Add Requested Changes
JavidSumra 85dee90
Merge branch 'issues/9272/view-live-consultation-btn' of https://gith…
JavidSumra f9ba5aa
Fix function call
JavidSumra b7c9dae
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra a7ced8d
Merge branch 'develop' into issues/9272/view-live-consultation-btn
nihal467 69b5a7a
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 43a85b8
Add Utility Function
JavidSumra d00136a
Merge branch 'issues/9272/view-live-consultation-btn' of https://gith…
JavidSumra de567e8
Revert Changes
JavidSumra 04e5c5d
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra a4ceffe
Fix Btn View on Discharged Patient
JavidSumra 2afc338
Merge branch 'issues/9272/view-live-consultation-btn' of https://gith…
JavidSumra c98a604
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 877d178
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 07f8b4b
Fix Button visibility
JavidSumra 981eee3
Merge branch 'issues/9272/view-live-consultation-btn' of https://gith…
JavidSumra a9d4bbb
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 61a25e1
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 255cbf9
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra f0ac734
Fix Merger Conflict
JavidSumra 068f676
Merge branch 'issues/9272/view-live-consultation-btn' of https://gith…
JavidSumra 785e069
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 161533b
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra ac20eb0
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra b103d59
Fix Merge Conflict
JavidSumra 15248d2
Fix view consultation btn issue
JavidSumra ba74270
Merge branch 'issues/9272/view-live-consultation-btn' of github.com:J…
JavidSumra 36e79c2
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 915c52c
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra dde6a44
Move file to common components
JavidSumra 43be803
Merge branch 'issues/9272/view-live-consultation-btn' of github.com:J…
JavidSumra de6a293
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra 4537a66
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra c659b1d
Merge branch 'develop' into issues/9272/view-live-consultation-btn
nihal467 e0e942a
Discard Changes in package file
JavidSumra 2150297
Merge branch 'develop' into issues/9272/view-live-consultation-btn
JavidSumra d0a386d
revert lockfile
rithviknishad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,19 @@ | ||
import { Button, ButtonProps } from "@headlessui/react"; | ||
|
||
import AuthorizedChild from "@/CAREUI/misc/AuthorizedChild"; | ||
|
||
import { AuthorizedElementProps } from "@/Utils/AuthorizeFor"; | ||
|
||
export const AuthorizedButton: React.FC< | ||
AuthorizedElementProps & ButtonProps | ||
> = ({ authorizeFor = () => true, ...props }) => { | ||
return ( | ||
<AuthorizedChild authorizeFor={authorizeFor}> | ||
{({ isAuthorized }) => ( | ||
<Button {...props} disabled={props.disabled || !isAuthorized}> | ||
{props.children} | ||
</Button> | ||
)} | ||
</AuthorizedChild> | ||
); | ||
}; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discard changes to the lockfile