feat: public api

This commit is contained in:
Nevo David 2024-12-14 19:30:46 +07:00
parent 0e14eb9a03
commit 72a2b7767b
2 changed files with 9 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export const SettingsPopup: FC<{ getRef?: Ref<any> }> = (props) => {
</div>
)}
{!!user?.tier?.team_members && isGeneral && <TeamsComponent />}
{!!user?.tier?.public_api && isGeneral && <PublicComponent />}
{!!user?.tier?.public_api && isGeneral && showLogout && <PublicComponent />}
{showLogout && <LogoutComponent />}
</div>
</form>

View File

@ -25,6 +25,14 @@ export const PublicComponent = () => {
<h2 className="text-[24px]">Public API</h2>
<div className="text-customColor18 mt-[4px]">
Use Postiz API to integrate with your tools.
<br />
<a
className="underline hover:text-white"
href="https://docs.postiz.com/public-api"
target="_blank"
>
Read how to use it over the documentation.
</a>
</div>
<div className="my-[16px] mt-[16px] bg-sixth border-fifth items-center border rounded-[4px] p-[24px] flex gap-[24px]">
<div className="flex items-center">