refactor: breakout section header
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
import Card from "@/components/TempDesignSystem/Card"
|
import Card from "@/components/TempDesignSystem/Card"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import { auth } from "@/auth"
|
import { auth } from "@/auth"
|
||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
|
|
||||||
import HowItWorks from "./HowItWorks"
|
import HowItWorks from "./HowItWorks"
|
||||||
import LoyaltyLevels from "./LoyaltyLevels"
|
import LoyaltyLevels from "./LoyaltyLevels"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
|
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Lock } from "react-feather"
|
|||||||
|
|
||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
import Button from "@/components/TempDesignSystem/Button"
|
import Button from "@/components/TempDesignSystem/Button"
|
||||||
import Chip from "@/components/TempDesignSystem/Chip"
|
import Chip from "@/components/TempDesignSystem/Chip"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
|
import Header from "@/components/SectionHeader"
|
||||||
import Divider from "@/components/TempDesignSystem/Divider"
|
import Divider from "@/components/TempDesignSystem/Divider"
|
||||||
|
|
||||||
import Header from "../Header"
|
|
||||||
import Friend from "./Friend"
|
import Friend from "./Friend"
|
||||||
import Stats from "./Stats"
|
import Stats from "./Stats"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { getMembership } from "@/utils/user"
|
import { getMembership } from "@/utils/user"
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl"
|
|||||||
import { dt } from "@/lib/dt"
|
import { dt } from "@/lib/dt"
|
||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
|
|
||||||
import Header from "@/components/MyPages/Blocks/Header"
|
import Header from "@/components/SectionHeader"
|
||||||
|
|
||||||
import styles from "./earnAndBurn.module.css"
|
import styles from "./earnAndBurn.module.css"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { ArrowRightIcon } from "@/components/Icons"
|
import { ArrowRightIcon } from "@/components/Icons"
|
||||||
|
import Header from "@/components/SectionHeader"
|
||||||
import Link from "@/components/TempDesignSystem/Link"
|
import Link from "@/components/TempDesignSystem/Link"
|
||||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||||
|
|
||||||
import Header from "../Header"
|
|
||||||
|
|
||||||
import styles from "./shortcuts.module.css"
|
import styles from "./shortcuts.module.css"
|
||||||
|
|
||||||
import type { ShortcutsProps } from "@/types/components/myPages/myPage/shortcuts"
|
import type { ShortcutsProps } from "@/types/components/myPages/myPage/shortcuts"
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
|
|
||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
|
import Header from "@/components/SectionHeader"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
|
|
||||||
import Header from "../../Header"
|
|
||||||
import Container from "../Container"
|
import Container from "../Container"
|
||||||
import ListContainer from "../ListContainer"
|
import ListContainer from "../ListContainer"
|
||||||
import ShowMoreButton from "../ShowMoreButton"
|
import ShowMoreButton from "../ShowMoreButton"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
|
import Header from "@/components/SectionHeader"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
|
|
||||||
import Header from "../../Header"
|
|
||||||
import StayCard from "../StayCard"
|
import StayCard from "../StayCard"
|
||||||
import EmptyUpcomingStaysBlock from "./EmptyUpcomingStays"
|
import EmptyUpcomingStaysBlock from "./EmptyUpcomingStays"
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
import { trpc } from "@/lib/trpc/client"
|
import { trpc } from "@/lib/trpc/client"
|
||||||
|
|
||||||
import LoadingSpinner from "@/components/LoadingSpinner"
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
|
import Header from "@/components/SectionHeader"
|
||||||
import Grids from "@/components/TempDesignSystem/Grids"
|
import Grids from "@/components/TempDesignSystem/Grids"
|
||||||
|
|
||||||
import Header from "../../Header"
|
|
||||||
import Container from "../Container"
|
import Container from "../Container"
|
||||||
import ListContainer from "../ListContainer"
|
import ListContainer from "../ListContainer"
|
||||||
import ShowMoreButton from "../ShowMoreButton"
|
import ShowMoreButton from "../ShowMoreButton"
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ import Link from "@/components/TempDesignSystem/Link"
|
|||||||
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
|
||||||
import Title from "@/components/TempDesignSystem/Text/Title"
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
||||||
|
|
||||||
import styles from "./header.module.css"
|
import styles from "./sectionHeader.module.css"
|
||||||
|
|
||||||
import type { HeaderProps } from "@/types/components/myPages/header"
|
import type { HeaderProps } from "@/types/components/myPages/header"
|
||||||
|
|
||||||
export default function Header({
|
export default function SectionHeader({
|
||||||
link,
|
link,
|
||||||
subtitle,
|
subtitle,
|
||||||
title,
|
title,
|
||||||
Reference in New Issue
Block a user