refactor: move APP import from data to configs for better organization
This commit is contained in:
parent
5227204791
commit
0c38a775e3
@ -8,7 +8,7 @@ import {
|
|||||||
import type { ReactNode } from 'react'
|
import type { ReactNode } from 'react'
|
||||||
|
|
||||||
import { LeftArrow } from '~/components/icons/left-arrow'
|
import { LeftArrow } from '~/components/icons/left-arrow'
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
type ModalProperties = {
|
type ModalProperties = {
|
||||||
isOpen: boolean
|
isOpen: boolean
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import type { ReactNode } from 'react'
|
|||||||
|
|
||||||
import { LeftArrow } from '~/components/icons/left-arrow'
|
import { LeftArrow } from '~/components/icons/left-arrow'
|
||||||
import { Button } from '~/components/ui/button'
|
import { Button } from '~/components/ui/button'
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
export type ModalProperties = {
|
export type ModalProperties = {
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
export const Banner = () => {
|
export const Banner = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -2,8 +2,8 @@ import { Link } from 'react-router'
|
|||||||
|
|
||||||
import { ChevronIcon } from '~/components/icons/chevron'
|
import { ChevronIcon } from '~/components/icons/chevron'
|
||||||
import { NotificationIcon } from '~/components/icons/notification'
|
import { NotificationIcon } from '~/components/icons/notification'
|
||||||
|
import { APP } from '~/configs/meta'
|
||||||
import { useAdminContext } from '~/contexts/admin'
|
import { useAdminContext } from '~/contexts/admin'
|
||||||
import { APP } from '~/data/meta'
|
|
||||||
|
|
||||||
export const Navbar = () => {
|
export const Navbar = () => {
|
||||||
const { adminProfile } = useAdminContext()
|
const { adminProfile } = useAdminContext()
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
import { COPYRIGHT_MENU, FOOTER_MENU } from './menu'
|
import { COPYRIGHT_MENU, FOOTER_MENU } from './menu'
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
import { Button } from '~/components/ui/button'
|
import { Button } from '~/components/ui/button'
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
export const FooterNewsletter = () => {
|
export const FooterNewsletter = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
|
|
||||||
import { Button } from '~/components/ui/button'
|
import { Button } from '~/components/ui/button'
|
||||||
|
import { APP } from '~/configs/meta'
|
||||||
import { useNewsContext } from '~/contexts/news'
|
import { useNewsContext } from '~/contexts/news'
|
||||||
import { APP } from '~/data/meta'
|
|
||||||
|
|
||||||
export const HeaderTop = () => {
|
export const HeaderTop = () => {
|
||||||
const { setIsLoginOpen } = useNewsContext()
|
const { setIsLoginOpen } = useNewsContext()
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import {
|
|||||||
|
|
||||||
import type { Route } from './+types/root'
|
import type { Route } from './+types/root'
|
||||||
import './app.css'
|
import './app.css'
|
||||||
import { APP, META_TITLE_CONFIG } from './data/meta'
|
import { APP, META_TITLE_CONFIG } from './configs/meta'
|
||||||
|
|
||||||
export const links: Route.LinksFunction = () => [
|
export const links: Route.LinksFunction = () => [
|
||||||
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { Link } from 'react-router'
|
|||||||
|
|
||||||
import { EyeIcon } from '~/components/icons/eye'
|
import { EyeIcon } from '~/components/icons/eye'
|
||||||
import { Button } from '~/components/ui/button'
|
import { Button } from '~/components/ui/button'
|
||||||
import { APP } from '~/data/meta'
|
import { APP } from '~/configs/meta'
|
||||||
|
|
||||||
const AuthLayout = () => {
|
const AuthLayout = () => {
|
||||||
const [showPassword, setShowPassword] = useState(false)
|
const [showPassword, setShowPassword] = useState(false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user