improvements: remove removed property reference and remove excess padding/margin on secret sync pages

This commit is contained in:
Scott Wilson
2025-01-27 19:12:05 -08:00
parent 72468d5428
commit 6af7c5c371
3 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ export const useSendPasswordSetupEmail = () => {
export const useSetupPassword = () => { export const useSetupPassword = () => {
return useMutation({ return useMutation({
mutationFn: async ({ verificationToken, ...payload }: SetupPasswordDTO) => { mutationFn: async (payload: SetupPasswordDTO) => {
const { data } = await apiRequest.post("/api/v1/password/password-setup", payload); const { data } = await apiRequest.post("/api/v1/password/password-setup", payload);
return data; return data;
@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useNavigate, useSearch } from "@tanstack/react-router"; import { useNavigate, useSearch } from "@tanstack/react-router";
import { ProjectPermissionCan } from "@app/components/permissions"; import { ProjectPermissionCan } from "@app/components/permissions";
import { Badge, Tab, TabList, TabPanel, Tabs } from "@app/components/v2"; import { Badge, PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
import { ROUTE_PATHS } from "@app/const/routes"; import { ROUTE_PATHS } from "@app/const/routes";
import { ProjectPermissionActions, ProjectPermissionSub, useWorkspace } from "@app/context"; import { ProjectPermissionActions, ProjectPermissionSub, useWorkspace } from "@app/context";
import { IntegrationsListPageTabs } from "@app/types/integrations"; import { IntegrationsListPageTabs } from "@app/types/integrations";
@@ -45,14 +45,12 @@ export const IntegrationsListPage = () => {
<meta name="og:description" content={t("integrations.description") as string} /> <meta name="og:description" content={t("integrations.description") as string} />
</Helmet> </Helmet>
<div className="container relative mx-auto max-w-7xl pb-12 text-white"> <div className="container relative mx-auto max-w-7xl pb-12 text-white">
<div className="mx-6 mb-8"> <div className="mb-8">
<div className="mb-4 mt-6 flex flex-col items-start justify-between px-2 text-xl"> <PageHeader
<h1 className="text-3xl font-semibold">Integrations</h1> title="Integrations"
<p className="text-base text-bunker-300"> description="Manage integrations with third-party services."
Manage integrations with third-party services. />
</p> <div className="mb-4 mt-4 flex flex-col rounded-r border-l-2 border-l-primary bg-mineshaft-300/5 px-4 py-2.5">
</div>
<div className="mx-2 mb-4 flex flex-col rounded-r border-l-2 border-l-primary bg-mineshaft-300/5 px-4 py-2.5">
<div className="mb-1 flex items-center text-sm"> <div className="mb-1 flex items-center text-sm">
<FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1 text-primary" /> <FontAwesomeIcon icon={faInfoCircle} size="sm" className="mr-1 text-primary" />
Integrations Update Integrations Update
@@ -73,7 +73,7 @@ const PageContent = () => {
return ( return (
<> <>
<div className="container mx-auto flex flex-col justify-between bg-bunker-800 font-inter text-white"> <div className="container mx-auto flex flex-col justify-between bg-bunker-800 font-inter text-white">
<div className="mx-auto mb-6 w-full max-w-7xl px-6 py-6"> <div className="mx-auto mb-6 w-full max-w-7xl">
<Button <Button
variant="link" variant="link"
type="submit" type="submit"
@@ -89,7 +89,6 @@ const PageContent = () => {
} }
}); });
}} }}
className="mb-4"
> >
Secret Syncs Secret Syncs
</Button> </Button>