
* Adds available apps * Adds App Model * WIP * Updates seeder script * Seeder fixes * lowercase categories * Upgrades prisma * WIP * WIP * Hopefully fixes circular deps * Type fixes * Fixes seeder * Adds migration to connect Credentials to Apps * Updates app store callbacks * Updates google credentials * Uses dirName from DB * Type fixes * Update reschedule.ts * Seeder fixes * Fixes categories listing * Update index.ts * Update schema.prisma * Updates dependencies * Renames giphy app * Uses dynamic imports for app metadata * Fixes credentials error * Uses dynamic import for api handlers * Dynamic import fixes * Allows for simple folder names in app store * Squashes app migrations * seeder fixes * Fixes dyamic imports * Update apiHandlers.tsx
18 lines
466 B
TypeScript
18 lines
466 B
TypeScript
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
|
import { InstallAppButtonProps } from "../../types";
|
|
|
|
export default function InstallAppButton(props: InstallAppButtonProps) {
|
|
// @ts-ignore TODO: deprecate App types in favor of DB slugs
|
|
const mutation = useAddAppMutation("giphy");
|
|
|
|
return (
|
|
<>
|
|
{props.render({
|
|
onClick() {
|
|
mutation.mutate("");
|
|
},
|
|
loading: mutation.isLoading,
|
|
})}
|
|
</>
|
|
);
|
|
}
|