From bda79d41c03e9de7b92fe88c3260046b725420d6 Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Fri, 5 Jul 2024 12:50:41 +0800 Subject: [PATCH] Rename useAccountWorkspace to useTeamAccountWorkspace The function useAccountWorkspace has been renamed to useTeamAccountWorkspace to better reflect its usage and context. The corresponding references and related error message were also updated to ensure consistency. --- .../team-accounts/src/hooks/use-team-account-workspace.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/features/team-accounts/src/hooks/use-team-account-workspace.ts b/packages/features/team-accounts/src/hooks/use-team-account-workspace.ts index ec29b899a..a9dbeb528 100644 --- a/packages/features/team-accounts/src/hooks/use-team-account-workspace.ts +++ b/packages/features/team-accounts/src/hooks/use-team-account-workspace.ts @@ -5,16 +5,16 @@ import { useContext } from 'react'; import { TeamAccountWorkspaceContext } from '../components'; /** - * @name useAccountWorkspace + * @name useTeamAccountWorkspace * @description A hook to access the account workspace data. * @returns The account workspace data. */ -export function useAccountWorkspace() { +export function useTeamAccountWorkspace() { const ctx = useContext(TeamAccountWorkspaceContext); if (!ctx) { throw new Error( - 'useAccountWorkspace must be used within a TeamAccountWorkspaceContext.Provider. This is only provided within the account workspace /home/[account]', + 'useTeamAccountWorkspace must be used within a TeamAccountWorkspaceContext.Provider. This is only provided within the account workspace /home/[account]', ); }