- {(record as TokenDataTable).name}
- {"Created" + ((record as TokenDataTable).created_by_email && user.is_service_user ? " by " + (record as TokenDataTable).created_by_email : "") + " on " + fullDate((record as TokenDataTable).created_at)}
+ {(record as TokenDataTable).name}
+ {"Created" + ((record as TokenDataTable).created_by_email && user.is_service_user ? " by " + (record as TokenDataTable).created_by_email : "") + " on " + fullDate((record as TokenDataTable).created_at)}
- >)
+ >)
}}/>
{
- return <>
- Expires on
- {fullDate((record as TokenDataTable).expiration_date)}
- >
- }}
+ return <>
+ Expires
+ on
+ {fullDate((record as TokenDataTable).expiration_date)}
+ >
+ }}
/>
{
- return <>
- Last used
- {(record as TokenDataTable).last_used ? fullDate((record as TokenDataTable).last_used) : "Never"}
- >
- }}
+ return <>
+ Last
+ used
+ {(record as TokenDataTable).last_used ? fullDate((record as TokenDataTable).last_used) : "Never"}
+ >
+ }}
/>
{
@@ -460,16 +509,23 @@ const UserEdit = () => {
/>
}
- {(personalAccessTokens === null || personalAccessTokens.length === 0) &&
-
- You don’t have any access tokens yet.
-
-
- }
+ {(personalAccessTokens === null || personalAccessTokens.length === 0) &&
+
+
+ You don’t have any access tokens yet
+
+
+ }
- }
+
+ }
{confirmModalContextHolder}
diff --git a/src/components/popups/AddPATPopup.tsx b/src/components/popups/AddPATPopup.tsx
index 2344e166..f39ece5c 100644
--- a/src/components/popups/AddPATPopup.tsx
+++ b/src/components/popups/AddPATPopup.tsx
@@ -130,27 +130,25 @@ const AddPATPopup = () => {
}
width={460}
>
-
+
- {showPlainToken ? "Token created successfully!" : "Create a Personal Access Token"}
+ style={{textAlign: "start", whiteSpace: "pre-line", fontSize: "22px"}}>
+ {showPlainToken ? "Token created successfully!" : "Create token"}
{!showPlainToken &&
- {"This token can be used to authenticate against" + "\n" + "NetBird's Public API."}
+ {"Use this token to access NetBird's public API"}
}
{showPlainToken && {"This token will not be shown again, so be sure to copy it and" + "\n" + "store in a secure location."}}
+ marginTop: "25px",
+ }}>{"This token won't be shown again, so be sure to copy and store it in a secure location"}}
{!showPlainToken && {
}
width={460}
>
-
+
- {"Add Service User"}
+ style={{textAlign: "start", whiteSpace: "pre-line", fontSize: "22px"}}>
+ {"Add service user"}
{
marginTop: "-23px",
paddingBottom: "25px",
}}>
- {"Service Users are non-login users that are not associated with any specific person."}
+ {"Service users are non-login users that are not associated with any specific person."}