implemented new tag method
This commit is contained in:
parent
eb5fd127e3
commit
6439d217e9
6 changed files with 48 additions and 48 deletions
|
|
@ -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=" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue