icons
This commit is contained in:
@@ -5,6 +5,7 @@ import PageTitle from "@/components/settings/PageTitle";
|
||||
import Roules from "@/components/settings/settings/Roules";
|
||||
import UserDetails from "@/components/settings/UserDetails";
|
||||
import { navLinks } from "@/constants";
|
||||
import { staticIconUrl } from "@/components/main/BaseUrl";
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import React from "react";
|
||||
@@ -28,7 +29,7 @@ function Settings() {
|
||||
width={24}
|
||||
height={24}
|
||||
alt={item?.title}
|
||||
src={`/images/icons/${item?.icon}`}
|
||||
src={staticIconUrl(`/images/icons/${item?.icon}`)}
|
||||
className="dark:invert"
|
||||
/>
|
||||
<span>{item?.title}</span>
|
||||
|
||||
@@ -40,7 +40,7 @@ export const IMAGE_BASE_URL = getStorageBaseUrl();
|
||||
|
||||
/** نسخه آیکونها — با هر تغییر آیکون این مقدار را افزایش دهید */
|
||||
export const ICON_VERSION =
|
||||
process.env.NEXT_PUBLIC_ICON_VERSION ?? "5";
|
||||
process.env.NEXT_PUBLIC_ICON_VERSION ?? "6";
|
||||
|
||||
/** URL آیکون استاتیک با cache-busting */
|
||||
export function staticIconUrl(path: string): string {
|
||||
|
||||
@@ -101,7 +101,7 @@ function ModelContentPosts({ filters, token, _id }: InfinitePostsProps) {
|
||||
<button
|
||||
type="button"
|
||||
key={post._id}
|
||||
className="relative aspect-square cursor-pointer overflow-hidden rounded-sm sm:rounded-lg group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
|
||||
className="relative aspect-square cursor-pointer overflow-hidden rounded-md sm:rounded-xl group focus:outline-none focus-visible:ring-2 focus-visible:ring-pink-500"
|
||||
onClick={() => openPost(post)}
|
||||
aria-label="مشاهده پست"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user