Hotfix: state updates for dashabord and service tokens

This commit is contained in:
Vladyslav Matsiiako
2023-01-05 09:46:04 -08:00
parent 8ddcccabfa
commit 5a19f8ed32
2 changed files with 14 additions and 3 deletions

View File

@@ -577,7 +577,7 @@ export default function Dashboard() {
<div className="mx-6 w-full pr-12">
<div className="flex flex-col max-w-5xl pb-1">
<div className="w-full flex flex-row items-start">
{(!snapshotData || data?.length !== 0) && (
{(snapshotData || data?.length !== 0) && (
<>
{!snapshotData
? <ListBox

View File

@@ -227,11 +227,22 @@ export default function SettingsBasic() {
<p className="text-xl font-semibold mb-3">
{t("section-token:service-tokens")}
</p>
<p className="text-base text-gray-400 mb-4">
<p className="text-sm text-gray-400">
{t("section-token:service-tokens-description")}
</p>
<p className="text-sm text-gray-400 mb-4">
Please, make sure you are on the
<a
className="text-primary underline underline-offset-2 ml-1"
href="https://infisical.com/docs/cli/overview"
target="_blank"
rel="noreferrer"
>
latest version of CLI
</a>.
</p>
</div>
<div className="w-48">
<div className="w-48 mt-2">
<Button
text={t("section-token:add-new")}
onButtonPressed={() => {