mirror of
https://github.com/documenso/documenso.git
synced 2025-11-26 22:44:41 +10:00
fix: refactor teams router (#1500)
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
import React from 'react';
|
||||
|
||||
import type { GetTeamResponse } from '@documenso/lib/server-only/team/get-team';
|
||||
import type { TGetTeamByIdResponse } from '@documenso/lib/server-only/team/get-team';
|
||||
|
||||
interface TeamProviderProps {
|
||||
children: React.ReactNode;
|
||||
team: GetTeamResponse;
|
||||
team: TGetTeamByIdResponse;
|
||||
}
|
||||
|
||||
const TeamContext = createContext<GetTeamResponse | null>(null);
|
||||
const TeamContext = createContext<TGetTeamByIdResponse | null>(null);
|
||||
|
||||
export const useCurrentTeam = () => {
|
||||
const context = useContext(TeamContext);
|
||||
|
||||
Reference in New Issue
Block a user