Merge branch 'master' into feature/slicing
This commit is contained in:
commit
a94b5c2f65
@ -3,7 +3,7 @@ import React from 'react'
|
||||
import { ChevronIcon } from '~/components/icons/chevron'
|
||||
import { ChevronDoubleIcon } from '~/components/icons/chevron-double'
|
||||
|
||||
interface PaginationProperties {
|
||||
type PaginationProperties = {
|
||||
currentPage: number
|
||||
totalPages: number
|
||||
onPageChange: (page: number) => void
|
||||
|
||||
13
app/components/ui/title-dashboard.tsx
Normal file
13
app/components/ui/title-dashboard.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
type TitleDashboardProperties = {
|
||||
title: string
|
||||
}
|
||||
export const TitleDashboard = (properties: TitleDashboardProperties) => {
|
||||
const { title } = properties
|
||||
return (
|
||||
<div className="container mx-auto">
|
||||
<div className="mb-5 flex items-center justify-between">
|
||||
<h1 className="text-xl font-bold">{title}</h1>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
9
app/pages/dashboard-advertisements/index.tsx
Normal file
9
app/pages/dashboard-advertisements/index.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { TitleDashboard } from '~/components/ui/title-dashboard'
|
||||
|
||||
export const AdvertisementsPage = () => {
|
||||
return (
|
||||
<div className="relative">
|
||||
<TitleDashboard title="Advertisement" />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@ -2,6 +2,7 @@ import { Field, Input, Label, Select } from '@headlessui/react'
|
||||
|
||||
import { SearchIcon } from '~/components/icons/search'
|
||||
import { Pagination } from '~/components/ui/pagination'
|
||||
import { TitleDashboard } from '~/components/ui/title-dashboard'
|
||||
|
||||
import { USERS } from './data'
|
||||
|
||||
@ -19,11 +20,7 @@ export const UsersPage = () => {
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
<div className="container mx-auto">
|
||||
<section className="mb-5 flex items-center justify-between">
|
||||
<h1 className="text-xl font-bold">User</h1>
|
||||
</section>
|
||||
</div>
|
||||
<TitleDashboard title="Users" />
|
||||
{/* filter section */}
|
||||
|
||||
<div className="mb-8 flex items-center gap-5 rounded-lg bg-gray-50 text-[#363636]">
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import { AdvertisementsPage } from '~/pages/dashboard-advertisements'
|
||||
|
||||
const DashboardAdvertisementsLayout = () => {
|
||||
return <div>Advertisements Page</div>
|
||||
return <AdvertisementsPage />
|
||||
}
|
||||
export default DashboardAdvertisementsLayout
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user