-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[front] - fix: assistant details modal (#9685)
* [front/components/assistant] - refactor: replace ElementModal with Sheet component in AssistantDetails - Introduced useState hook for tracking the Sheet's open state and useEffect hook to set this state based on the assistantId - Updated AssistantDetails to use the Sheet component for modal functionality, enhancing the UX with a new sliding panel design - Removed the now-obsolete ElementModal import and related attributes in favor of Sheet related components and attributes * [front/assistant] - refactor: streamline AssistantDetails component state management - Removed unused isOpen state variable and useEffect for setting modal open state - Modified conditionals to use optional chaining for cleaner access to agentConfiguration properties - Ensure Sheet component open state is dependent on the existence of an assistantId - Conditional rendering of the AssistantUsageSection now checks for the existence of agentConfiguration directly
- Loading branch information
1 parent
fce8efe
commit 0c37e95
Showing
1 changed file
with
40 additions
and
33 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