Skip to content

Commit

Permalink
Renaming isFlyoutVisible to isUseCaseFlyoutVisible
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Oct 2, 2024
1 parent ebc1e85 commit 83bc3cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export const WorkspaceUseCase = ({
formErrors,
availableUseCases,
}: WorkspaceUseCaseProps) => {
const [isFlyoutVisible, setIsFlyoutVisible] = useState(false);
const [isUseCaseFlyoutVisible, setIsUseCaseFlyoutVisible] = useState(false);
const handleLearnMoreClick = useCallback(() => {
setIsFlyoutVisible(true);
setIsUseCaseFlyoutVisible(true);
}, []);
const handleFlyoutClose = useCallback(() => {
setIsFlyoutVisible(false);
setIsUseCaseFlyoutVisible(false);
}, []);

return (
Expand All @@ -131,7 +131,7 @@ export const WorkspaceUseCase = ({
defaultMessage: 'Learn more.',
})}
</EuiLink>
{isFlyoutVisible && (
{isUseCaseFlyoutVisible && (
<WorkspaceUseCaseFlyout
availableUseCases={availableUseCases}
onClose={handleFlyoutClose}
Expand Down

0 comments on commit 83bc3cf

Please sign in to comment.