Compare commits
No commits in common. "6082cf0cdbbe4f5ca5ab6320c84f3a391e244abe" and "e11f007eb1b3bc96cc38fe2f50d75514c316b0ba" have entirely different histories.
6082cf0cdb
...
e11f007eb1
@ -1,14 +1,15 @@
|
|||||||
import type { JSX, SVGProps } from 'react'
|
import type { JSX, SVGProps } from 'react'
|
||||||
|
|
||||||
type TNotificationIcon = {
|
interface NotificationIconProperties
|
||||||
|
extends JSX.IntrinsicAttributes,
|
||||||
|
SVGProps<SVGSVGElement> {
|
||||||
showBadge?: boolean
|
showBadge?: boolean
|
||||||
} & JSX.IntrinsicAttributes &
|
}
|
||||||
SVGProps<SVGSVGElement>
|
|
||||||
|
|
||||||
export const NotificationIcon = ({
|
export const NotificationIcon = ({
|
||||||
showBadge = false,
|
showBadge = false,
|
||||||
...properties
|
...properties
|
||||||
}: TNotificationIcon) => {
|
}: NotificationIconProperties) => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
width={16}
|
width={16}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
type BreadcrumbProperty = {
|
// use slog or handel get by url
|
||||||
|
interface BreadcrumbProperty {
|
||||||
slug: string
|
slug: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { GraphIcon } from '~/components/icons/graph'
|
import { GraphIcon } from '~/components/icons/graph'
|
||||||
import { formatNumberWithPeriods } from '~/utils/formatter'
|
import { formatNumberWithPeriods } from '~/utils/formatter'
|
||||||
|
|
||||||
type CardReportProperty = {
|
interface CardReportProperty {
|
||||||
title: string
|
title: string
|
||||||
amount: number
|
amount: number
|
||||||
url?: string
|
url?: string
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import { LinkIcon } from '~/components/icons/link-icon'
|
|||||||
import { LinkedinIcon } from '~/components/icons/linkedin'
|
import { LinkedinIcon } from '~/components/icons/linkedin'
|
||||||
import { XIcon } from '~/components/icons/x'
|
import { XIcon } from '~/components/icons/x'
|
||||||
|
|
||||||
type SocialMediaProperties = {
|
interface SocialMediaProperties {
|
||||||
className?: string
|
className?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
import htmlParse from 'html-react-parser'
|
|
||||||
|
|
||||||
import { Breadcrumb } from '~/components/ui/breadcrumb'
|
import { Breadcrumb } from '~/components/ui/breadcrumb'
|
||||||
import { Card } from '~/components/ui/card'
|
import { Card } from '~/components/ui/card'
|
||||||
import { Carousel } from '~/components/ui/carousel'
|
import { Carousel } from '~/components/ui/carousel'
|
||||||
@ -33,7 +31,7 @@ export const NewsDetailPage = () => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<IconsSocial className="ml-auto" />
|
<IconsSocial className="ml-auto"></IconsSocial>
|
||||||
</div>
|
</div>
|
||||||
{/* end next planing create component for this section */}
|
{/* end next planing create component for this section */}
|
||||||
<div className="w-full bg-amber-200">
|
<div className="w-full bg-amber-200">
|
||||||
@ -44,7 +42,10 @@ export const NewsDetailPage = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</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 items-end justify-between border-b-3 border-b-gray-300 py-4">
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<p className="mb-2">Share this post</p>
|
<p className="mb-2">Share this post</p>
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
import { redirect } from 'react-router'
|
|
||||||
|
|
||||||
export async function loader() {
|
|
||||||
return redirect('/admin/dashboard')
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user