mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
Update type of SchedulesProvider
This commit is contained in:
@@ -10,12 +10,13 @@ const SchedulesContext = createContext<SchedulesContextValue | undefined>(
|
||||
undefined,
|
||||
);
|
||||
|
||||
type SchedulesProviderProps = PropsWithChildren<{
|
||||
query?: UseSchedulesProps['query'];
|
||||
}>;
|
||||
type SchedulesProviderProps = PropsWithChildren<UseSchedulesProps>;
|
||||
|
||||
export function SchedulesProvider({ query, children }: SchedulesProviderProps) {
|
||||
const data = useSchedules({ query });
|
||||
export function SchedulesProvider({
|
||||
children,
|
||||
...props
|
||||
}: SchedulesProviderProps) {
|
||||
const data = useSchedules(props);
|
||||
return (
|
||||
<SchedulesContext.Provider value={data}>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user