Updating headings

This commit is contained in:
Violet Caulfield
2024-11-24 06:31:12 -06:00
parent 3dc88e5fa3
commit eb949c6551
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { ScrollView, YStack } from "tamagui";
import _ from "lodash";
import { Heading } from "../helpers/text";
import { H1 } from "../helpers/text";
import RecentlyPlayed from "./helpers/recently-played";
import { useApiClientContext } from "../jellyfin-api-provider";
@@ -12,7 +12,7 @@ export default function Home(): React.JSX.Element {
return (
<ScrollView paddingLeft={10}>
<YStack alignContent='flex-start'>
<Heading>{`Hi, ${user!.name}`}</Heading>
<H1>{`Hi, ${user!.name}`}</H1>
<RecentlyPlayed />
</YStack>
+3 -3
View File
@@ -6,7 +6,7 @@ import { JellifyServer } from "../../../types/JellifyServer";
import { useApiClientContext } from "../../jellyfin-api-provider";
import { getTokens, Spacer, Spinner, View, XStack, ZStack } from "tamagui";
import { SwitchWithLabel } from "../../helpers/switch-with-label";
import { Heading } from "../../helpers/text";
import { H1 } from "../../helpers/text";
import Input from "../../helpers/input";
import Button from "../../helpers/button";
import { http, https } from "../utils/constants";
@@ -58,9 +58,9 @@ export default function ServerAddress(): React.JSX.Element {
return (
<View marginHorizontal={10} flex={1} justifyContent='center'>
<Heading>
<H1>
Connect to Jellyfin
</Heading>
</H1>
<XStack>
<SwitchWithLabel
checked={useHttps}
@@ -5,7 +5,7 @@ import _ from "lodash";
import { JellyfinCredentials } from "../../../api/types/jellyfin-credentials";
import { View, YStack } from "tamagui";
import { useAuthenticationContext } from "../provider";
import { Heading } from "../../helpers/text";
import { H1 } from "../../helpers/text";
import Button from "../../helpers/button";
import Input from "../../helpers/input";
@@ -46,9 +46,9 @@ export default function ServerAuthentication(): React.JSX.Element {
return (
<View marginHorizontal={10} flex={1} justifyContent='center'>
<Heading>
<H1>
{ `Sign in to ${server?.name ?? "Jellyfin"}`}
</Heading>
</H1>
<Button
onPress={() => {
setServer(undefined);
+2 -2
View File
@@ -3,7 +3,7 @@ import React, { useEffect } from "react";
import { useApiClientContext } from "../../jellyfin-api-provider";
import { Spinner, Text, ToggleGroup, View } from "tamagui";
import { useAuthenticationContext } from "../provider";
import { Heading, Label } from "../../helpers/text";
import { H1, Label } from "../../helpers/text";
import Button from "../../helpers/button";
import _ from "lodash";
import { Api } from "@jellyfin/sdk";
@@ -43,7 +43,7 @@ export default function ServerLibrary(): React.JSX.Element {
return (
<View marginHorizontal={10} flex={1} justifyContent='center'>
<Heading>Select Music Library</Heading>
<H1>Select Music Library</H1>
{ isPending ? (
<Spinner />
+3 -3
View File
@@ -1,4 +1,4 @@
import { H1, SizeTokens, Label as TamaguiLabel } from "tamagui"
import { H1 as TamaguiH1, SizeTokens, Label as TamaguiLabel } from "tamagui"
interface LabelProps {
htmlFor: string,
@@ -12,8 +12,8 @@ export function Label(props: LabelProps): React.JSX.Element {
)
}
export function Heading({ children }: { children: string }): React.JSX.Element {
export function H1({ children }: { children: string }): React.JSX.Element {
return (
<H1 marginVertical={30} fontWeight={900}>{ children }</H1>
<TamaguiH1 marginVertical={30}>{ children }</TamaguiH1>
)
}