Skip to content

Commit

Permalink
#29
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jun 4, 2024
1 parent 0df8cf1 commit 17a2235
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Documentation/DocumentationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Button, Icon } from "theme";
import {
useTranslation,
useResolveLocalizedString,
useLang,
getFormattedDate,
useLang
} from "i18n";
import { capitalize } from "tsafe/capitalize";
import Avatar from "@mui/material/Avatar";
Expand All @@ -19,6 +18,7 @@ import Link from "@mui/material/Link";
import type { EducationalResourceTag } from "lib/educationalResources/educationalResources";
import { Tag } from "onyxia-ui/Tag";
import { declareComponentKeys } from "i18nifty";
import { formatDuration } from "tools/prettyPrintDuration";

const { injectLinks } = createInjectLinks({
"Link": ({ href, children }) => (
Expand Down Expand Up @@ -66,7 +66,7 @@ export const DocumentationCard = memo((props: Props) => {
size="extra small"
/>
<Text typo="body 2" className={classes.timeRequired}>
{getFormattedDate(timeRequired, lang)}
{formatDuration(timeRequired)}
</Text>
</>
)}
Expand Down

0 comments on commit 17a2235

Please sign in to comment.