Compare commits

..

No commits in common. "6082cf0cdbbe4f5ca5ab6320c84f3a391e244abe" and "e11f007eb1b3bc96cc38fe2f50d75514c316b0ba" have entirely different histories.

6 changed files with 14 additions and 16 deletions

View File

@ -1,14 +1,15 @@
import type { JSX, SVGProps } from 'react'
type TNotificationIcon = {
interface NotificationIconProperties
extends JSX.IntrinsicAttributes,
SVGProps<SVGSVGElement> {
showBadge?: boolean
} & JSX.IntrinsicAttributes &
SVGProps<SVGSVGElement>
}
export const NotificationIcon = ({
showBadge = false,
...properties
}: TNotificationIcon) => {
}: NotificationIconProperties) => {
return (
<svg
width={16}

View File

@ -1,6 +1,7 @@
import { Link } from 'react-router'
type BreadcrumbProperty = {
// use slog or handel get by url
interface BreadcrumbProperty {
slug: string
}

View File

@ -1,7 +1,7 @@
import { GraphIcon } from '~/components/icons/graph'
import { formatNumberWithPeriods } from '~/utils/formatter'
type CardReportProperty = {
interface CardReportProperty {
title: string
amount: number
url?: string

View File

@ -8,7 +8,7 @@ import { LinkIcon } from '~/components/icons/link-icon'
import { LinkedinIcon } from '~/components/icons/linkedin'
import { XIcon } from '~/components/icons/x'
type SocialMediaProperties = {
interface SocialMediaProperties {
className?: string
}

View File

@ -1,5 +1,3 @@
import htmlParse from 'html-react-parser'
import { Breadcrumb } from '~/components/ui/breadcrumb'
import { Card } from '~/components/ui/card'
import { Carousel } from '~/components/ui/carousel'
@ -33,7 +31,7 @@ export const NewsDetailPage = () => {
</p>
</div>
</div>
<IconsSocial className="ml-auto" />
<IconsSocial className="ml-auto"></IconsSocial>
</div>
{/* end next planing create component for this section */}
<div className="w-full bg-amber-200">
@ -44,7 +42,10 @@ export const NewsDetailPage = () => {
/>
</div>
<article className="prose prose-stone">{htmlParse(content)}</article>
<article
className="prose prose-stone"
dangerouslySetInnerHTML={{ __html: content }}
/>
<div className="flex items-end justify-between border-b-3 border-b-gray-300 py-4">
<div className="flex flex-col">
<p className="mb-2">Share this post</p>

View File

@ -1,5 +0,0 @@
import { redirect } from 'react-router'
export async function loader() {
return redirect('/admin/dashboard')
}