Skip to content

Commit

Permalink
refactor: rename component files (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
fityannugroho authored Dec 3, 2024
1 parent 409338e commit 7bcb0f0
Show file tree
Hide file tree
Showing 22 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/(main)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Navbar } from '@/components/navbar'
import { Navbar } from '@/components/Navbar'

export default function MainLayout({
children,
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/pilkada2024/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DashboardLayout from '@/components/dashboard-layout'
import DashboardLayout from '@/components/DashboardLayout'
import MapDashboardProvider from '@/modules/MapDashboard/DashboardProvider'
import MapView from '@/modules/Pilkada2024/MapView'
import PilkadaProvider from '@/modules/Pilkada2024/PilkadaProvider'
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cn } from '@/lib/utils'
import { Inter } from 'next/font/google'
import { StrictMode } from 'react'
import './globals.css'
import QueryProvider from '@/components/query-provider'
import QueryProvider from '@/components/QueryProvider'
import { Toaster } from '@/components/ui/sonner'
import type { Metadata } from 'next'
import { ThemeProvider } from 'next-themes'
Expand Down
2 changes: 1 addition & 1 deletion app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Navbar } from '@/components/navbar'
import { Navbar } from '@/components/Navbar'
import { Button } from '@/components/ui/button'
import { TriangleAlertIcon } from 'lucide-react'
import type { Metadata } from 'next'
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/ComboboxArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
Combobox,
type ComboboxOption,
type ComboboxProps,
} from '@/components/combobox'
} from '@/components/Combobox'
import { useArea } from '@/hooks/useArea'
import type { FeatureArea } from '@/lib/config'
import type { GetArea } from '@/lib/const'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion components/map.tsx → components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'leaflet/dist/leaflet.css'
import type { PropsWithChildren } from 'react'
import { MapContainer, type MapContainerProps } from 'react-leaflet'
import TileLayer from './tile-layer'
import TileLayer from './TileLayer'

export type MapProps = MapContainerProps & PropsWithChildren

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion components/navbar.tsx → components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { cn } from '@/lib/utils'
import { ExternalLinkIcon, HandHeartIcon, MenuIcon } from 'lucide-react'
import Link from 'next/link'
import * as React from 'react'
import { ThemeToggle } from './ThemeToggle'
import GitHubIcon from './icons/GitHubIcon'
import { ThemeToggle } from './theme-toggle'
import { Badge } from './ui/badge'
import { Button } from './ui/button'
import {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion modules/MapDashboard/BoundaryLayers.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import AreaBoundary from '@/components/area-boundary'
import AreaBoundary from '@/components/AreaBoundary'
import { featureConfig } from '@/lib/config'
import { getObjectKeys } from '@/lib/utils'
import { useCallback, useState } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion modules/MapDashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import DashboardLayout from '@/components/dashboard-layout'
import DashboardLayout from '@/components/DashboardLayout'
import MapDashboardProvider from './DashboardProvider'
import MapView from './MapView'
import Sidebar from './Sidebar'
Expand Down
4 changes: 2 additions & 2 deletions modules/MapDashboard/IslandMarkers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { useMapDashboard } from './hooks/useDashboard'
import { useIslands } from './hooks/useIslands'

const MarkerClusterGroup = dynamic(
() => import('@/components/map-marker-cluster-group'),
() => import('@/components/MapMarkerClusterGroup'),
{ ssr: false },
)

const MapMarker = dynamic(() => import('@/components/map-marker'), {
const MapMarker = dynamic(() => import('@/components/MapMarker'), {
ssr: false,
})

Expand Down
2 changes: 1 addition & 1 deletion modules/MapDashboard/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import BoundaryLayers from './BoundaryLayers'
import IslandMarkers from './IslandMarkers'
import { useMapDashboard } from './hooks/useDashboard'

const Map = dynamic(() => import('@/components/map'), {
const Map = dynamic(() => import('@/components/Map'), {
loading: () => <Skeleton className="h-full rounded-none" />,
ssr: false,
})
Expand Down
2 changes: 1 addition & 1 deletion modules/Pilkada2024/BoundaryLayers.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import AreaBoundary from '@/components/area-boundary'
import AreaBoundary from '@/components/AreaBoundary'
import { useArea } from '@/hooks/useArea'
import { config } from '@/lib/config'
import { Area } from '@/lib/const'
Expand Down
2 changes: 1 addition & 1 deletion modules/Pilkada2024/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useMapDashboard } from '../MapDashboard/hooks/useDashboard'
import BoundaryLayers from './BoundaryLayers'
import { usePilkada } from './hooks/usePilkada'

const Map = dynamic(() => import('@/components/map'), {
const Map = dynamic(() => import('@/components/Map'), {
loading: () => <Skeleton className="h-full rounded-none" />,
ssr: false,
})
Expand Down
2 changes: 1 addition & 1 deletion modules/Pilkada2024/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { Combobox } from '@/components/Combobox'
import ComboboxArea from '@/components/ComboboxArea'
import { Combobox } from '@/components/combobox'
import { Button } from '@/components/ui/button'
import { config } from '@/lib/config'
import { Area } from '@/lib/const'
Expand Down

0 comments on commit 7bcb0f0

Please sign in to comment.