Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Oct 20, 2024
1 parent 96c8389 commit 96a6b5b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/components/layout/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { AppLink } from "./app-link";

function replacePlaceholders(
template: string,
values: { [key: string]: string }
values: { [key: string]: string },
): string {
return template.replace(/\[([^\]]+)\]/g, (_, key) => {
return values[key] || `[${key}]`;
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/layout/header/app-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ import { UserNav } from "./user-nav";
const lastChangelog = allChangelogs
.sort(
(a, b) =>
new Date(a.publishedAt).getTime() - new Date(b.publishedAt).getTime()
new Date(a.publishedAt).getTime() - new Date(b.publishedAt).getTime(),
)
.pop();

export function AppHeader() {
const [lastViewed, setLastViewed] = useCookieState(
"last-viewed-changelog",
new Date(0).toISOString()
new Date(0).toISOString(),
);

const show =
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/layout/header/user-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useTheme } from "next-themes";
import Link from "next/link";
import { useParams } from "next/navigation";

import { ThemeIcon } from "@/components/theme/theme-icon";
import {
Avatar,
AvatarFallback,
Expand All @@ -22,7 +23,6 @@ import {
DropdownMenuTrigger,
Skeleton,
} from "@openstatus/ui";
import { ThemeIcon } from "@/components/theme/theme-icon";

export function UserNav() {
const session = useSession();
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/layout/marketing-footer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ArrowUpRight } from "lucide-react";
import Link from "next/link";

import { ThemeToggle } from "@/components/theme/theme-toggle";
import { socialsConfig } from "@/config/socials";
import { cn } from "@/lib/utils";
import { Shell } from "../dashboard/shell";
import { ThemeToggle } from "@/components/theme/theme-toggle";
import { BrandName } from "./brand-name";
import { SocialIconButton } from "./social-icon-button";
import { StatusWidgetContainer } from "./status-widget-suspense";
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/theme/theme-icon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cn } from "@/lib/utils";
import { IconProps, Icons, type ValidIcon } from "../icons";
import { type IconProps, Icons, type ValidIcon } from "../icons";

function mapThemeToIconName(theme: string): ValidIcon {
switch (theme) {
Expand Down

0 comments on commit 96a6b5b

Please sign in to comment.