Fix eslint errors

Signed-off-by: Jonathan <contact@grafikart.fr>
This commit is contained in:
Jonathan
2026-07-23 15:01:33 +02:00
committed by Bryan Frimin
parent a7ff5f07bc
commit 13ba251aba
2 changed files with 9 additions and 6 deletions

View File

@@ -18,7 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
import { formatDate, formatError } from "@probo/helpers";
import { formatError } from "@probo/helpers";
import { dateFormat } from "@probo/i18n";
import {
Badge,
Button,
@@ -67,7 +68,7 @@ export function OAuthTokenRow(props: {
identityId: string;
}) {
const { tokenKey, identityId } = props;
const { t } = useTranslation();
const { t, i18n } = useTranslation();
const { toast } = useToast();
const token = useFragment(fragment, tokenKey);
@@ -152,8 +153,8 @@ export function OAuthTokenRow(props: {
)}
</div>
</Td>
<Td>{formatDate(token.createdAt)}</Td>
<Td>{formatDate(token.expiresAt)}</Td>
<Td>{dateFormat(i18n.language, token.createdAt)}</Td>
<Td>{dateFormat(i18n.language, token.expiresAt)}</Td>
<Td>
{token.canDelete && (
<Dialog

View File

@@ -18,9 +18,10 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
import { formatDate } from "@probo/helpers";
import { dateFormat } from "@probo/i18n";
import { Badge, IconChevronDown, IconChevronRight, Td, Tr } from "@probo/ui";
import { useState } from "react";
import { useTranslation } from "react-i18next";
import { useFragment } from "react-relay";
import { graphql } from "relay-runtime";
@@ -70,6 +71,7 @@ export function SCIMEventListItem(props: {
}) {
const { fKey } = props;
const [isExpanded, setIsExpanded] = useState(false);
const { i18n } = useTranslation();
const event = useFragment<SCIMEventListItemFragment$key>(
SCIMEventListItemFragment,
@@ -93,7 +95,7 @@ export function SCIMEventListItem(props: {
: (
<IconChevronRight size={16} className="text-txt-secondary" />
)}
{formatDate(event.createdAt)}
{dateFormat(i18n.language, event.createdAt)}
</div>
</Td>
<Td>{getMethodBadge(event.method)}</Td>