Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Nov 25, 2024
1 parent 547fc36 commit 618e2cc
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/de.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ Fühlen Sie sich frei, Ihre Kubernetes-Bereitstellungen zu erkunden und die Kont
CommandBar: {
ok: "Ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ Feel free to explore and take charge of your Kubernetes deployments!
CommandBar: {
ok: "Ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/es.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ export const translations: Translations<"en"> = {
CommandBar: {
ok: "Aceptar"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/fi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ Tutustu vapaasti ja ota hallintaan Kubernetes-julkaisusi!
CommandBar: {
ok: "ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/fr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ N'hésitez pas à explorer et à prendre en main vos déploiements Kubernetes !
CommandBar: {
ok: "ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/it.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ Sentiti libero di esplorare e prendere il controllo dei tuoi deployment Kubernet
CommandBar: {
ok: "ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/nl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ Voel je vrij om te verkennen en de controle over je Kubernetes-implementaties te
CommandBar: {
ok: "ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/no.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ Utforsk gjerne og ta kontroll over tjenestene du kjører på Kubernetes!
CommandBar: {
ok: "ok"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/resources/zh-CN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ ${
CommandBar: {
ok: "是"
},
formatedDate: {
formattedDate: {
past1: ({ divisorKey }) => {
switch (divisorKey) {
case "now":
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export type ComponentKey =
| import("ui/pages/dataExplorer/DataExplorer").I18n
| import("ui/pages/dataExplorer/UrlInput").I18n
| import("ui/shared/CommandBar").I18n
| import("ui/tools/useFormatedDate").I18n
| import("ui/shared/useFormattedDate").I18n
| import("ui/shared/CopyToClipboardIconButton").I18n
| import("ui/shared/Datagrid/CustomDataGrid").I18n
| import("ui/shared/Datagrid/CustomDataGridToolbarDensitySelector").I18n
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/pages/account/AccountKubernetesTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useConstCallback } from "powerhooks/useConstCallback";
import { IconButton } from "onyxia-ui/IconButton";
import { CircularProgress } from "onyxia-ui/CircularProgress";
import { useCoreState, useCore } from "core";
import { useFromNow } from "ui/tools/useFormatedDate";
import { useFromNow } from "ui/shared/useFormattedDate";
import { getIconUrlByName } from "lazy-icons";

const CodeBlock = lazy(() => import("ui/shared/CodeBlock"));
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/pages/account/AccountStorageTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { tss } from "tss";
import { assert } from "tsafe/assert";
import { saveAs } from "file-saver";
import { smartTrim } from "ui/tools/smartTrim";
import { useFromNow } from "ui/tools/useFormatedDate";
import { useFromNow } from "ui/shared/useFormattedDate";
import { useCoreState, useCore } from "core";
import { declareComponentKeys } from "i18nifty";
import { useConstCallback } from "powerhooks/useConstCallback";
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/pages/account/AccountVaultTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useConstCallback } from "powerhooks/useConstCallback";
import { IconButton } from "onyxia-ui/IconButton";
import { CircularProgress } from "onyxia-ui/CircularProgress";
import { useCoreState, useCore } from "core";
import { useFromNow } from "ui/tools/useFormatedDate";
import { useFromNow } from "ui/shared/useFormattedDate";
import type { Link } from "type-route";
import { routes } from "ui/routes";
import { capitalize } from "tsafe/capitalize";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { SecretsExplorerButtonBar } from "./SecretsExplorerButtonBar";
import { DirectoryHeader } from "onyxia-ui/DirectoryHeader";
import { useDomRect } from "powerhooks/useDomRect";
import { ExplorerIcon } from "./ExplorerIcon";
import { getFormattedDate } from "ui/tools/useFormatedDate";
import { getFormattedDate } from "ui/tools/useFormattedDate";
import { Dialog } from "onyxia-ui/Dialog";
import { useCallbackFactory } from "powerhooks/useCallbackFactory";
import { Deferred } from "evt/tools/Deferred";
Expand Down
2 changes: 1 addition & 1 deletion web/src/ui/pages/myServices/ClusterEventsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useEvt } from "evt/hooks";
import { Dialog } from "onyxia-ui/Dialog";
import { Button } from "onyxia-ui/Button";
import { useCoreState, useCore } from "core";
import { fromNow } from "ui/tools/useFormatedDate";
import { fromNow } from "ui/shared/useFormattedDate";
import { tss } from "tss";
import { useWindowInnerSize } from "powerhooks/useWindowInnerSize";
import { assert } from "tsafe/assert";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { memo } from "react";
import { tss } from "tss";
import { Icon } from "onyxia-ui/Icon";
import { Text } from "onyxia-ui/Text";
import { useFromNow } from "ui/tools/useFormatedDate";
import { useFromNow } from "ui/shared/useFormattedDate";
import { getIconUrlByName } from "lazy-icons";

export type Props = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const { fromNow } = (() => {
const YEAR = 365 * DAY;

function getUnits(): Unit[] {
const { t } = getTranslation("formatedDate");
const { t } = getTranslation("formattedDate");

return divisorKeys.map(divisorKey => ({
divisor: (() => {
Expand Down Expand Up @@ -177,5 +177,5 @@ const { i18n } = declareComponentKeys<
K: "futureN";
P: { divisorKey: DivisorKey };
}
>()("formatedDate");
>()("formattedDate");
export type I18n = typeof i18n;

0 comments on commit 618e2cc

Please sign in to comment.