implemented new tag method

This commit is contained in:
Carter 2025-03-04 14:40:51 -06:00
parent eb5fd127e3
commit 6439d217e9
6 changed files with 48 additions and 48 deletions

View file

@ -4,6 +4,7 @@ import { createContext, PropsWithChildren, useContext } from "react";
import { pondURL } from "./pond";
import { useGlobalState } from "providers/StateContainer";
import { AxiosResponse } from "axios";
import { getContextKeys, getContextTypes } from "pbHelpers/Context";
export interface ITagAPIContext {
addTag: (tag: pond.TagSettings) => Promise<any>;
@ -87,6 +88,8 @@ export default function TagProvider(props: PropsWithChildren<Props>) {
types?: string[]
) => {
limit = limit ? limit : 100
// if (!keys) keys = getContextKeys()
// if (!types) types = getContextTypes()
const url = pondURL(
"/tags" +
"?limit=" +