Skip to content

Commit

Permalink
fix: prettier err (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsoffer authored Aug 17, 2023
1 parent 81f7ff7 commit 1042884
Show file tree
Hide file tree
Showing 9 changed files with 6,962 additions and 6,719 deletions.
6 changes: 1 addition & 5 deletions packages/www/components/AssetDetails/AssetHeadingBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ const AssetHeadingBox = ({ asset, totalViews }: AssetHeadingBoxProps) => {
{totalViews != undefined ? (
<Tooltip
css={{ bc: "$neutral3", color: "$neutral3" }}
content={
<Box css={{ color: "$hiContrast" }}>
Views are defined as at least 1 second of watch time.
</Box>
}>
content="Views are defined as at least 1 second of watch time">
<Flex align="center" css={{ mr: "$3", fontSize: "$2" }}>
<Box as={PlayIcon} css={{ mr: "$1" }} /> {totalViews} views
</Flex>
Expand Down
3 changes: 2 additions & 1 deletion packages/www/components/ErrorDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const ErrorDialog = ({
}) => {
return (
<AlertDialog open={isOpen} onOpenChange={onOpenChange}>
<AlertDialogContent css={{ maxWidth: 450, px: "$5", pt: "$4", pb: "$4", zIndex: 1 }}>
<AlertDialogContent
css={{ maxWidth: 450, px: "$5", pt: "$4", pb: "$4", zIndex: 1 }}>
<AlertDialogTitle asChild>
<Heading size="1">Error</Heading>
</AlertDialogTitle>
Expand Down
4 changes: 2 additions & 2 deletions packages/www/components/Plans/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const Plans = ({ dashboard = false, stripeProductId }: PlanProps) => {
title={
<Tooltip
multiline
content=" Create multiple versions of your source stream for different
content="Create multiple versions of your source stream for different
devices in real time.">
<Text
size="3"
Expand Down Expand Up @@ -206,7 +206,7 @@ const Plans = ({ dashboard = false, stripeProductId }: PlanProps) => {
title={
<Tooltip
multiline
content=" Deliver high-quality playback on whatever device or bandwidth the
content="Deliver high-quality playback on whatever device or bandwidth the
end viewer is watching.">
<Text
size="3"
Expand Down
10 changes: 3 additions & 7 deletions packages/www/components/StreamDetails/StreamOverviewBox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Heading, Flex, Button, Tooltip } from "@livepeer/design-system";
import { Box, Heading, Flex, Tooltip } from "@livepeer/design-system";
import ClipButton from "../Clipping/ClipButton";
import RelativeTime from "../RelativeTime";
import ShowURL from "../ShowURL";
Expand Down Expand Up @@ -101,14 +101,10 @@ const StreamOverviewBox = ({
</Box>
<Tooltip
multiline
content={
<Box>
When enabled, transcoded streaming sessions will be recorded
content="When enabled, transcoded streaming sessions will be recorded
and stored by Livepeer Studio. Each recorded session will
have a recording .m3u8 URL for playback and an MP4 download
link. This feature is currently free.
</Box>
}>
link. This feature is currently free.">
<Help />
</Tooltip>
</Flex>
Expand Down
8 changes: 1 addition & 7 deletions packages/www/components/Table/cells/createdAt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ const ProcessingProgress = ({ progress, playbackUrl }) => (
{playbackUrl && (
<Tooltip
multiline
content={
<Box>
Your video can now be played. In the background, it is converted
into several quality levels so that it can be played smoothly by all
viewers.
</Box>
}>
content="Your video can now be played. In the background, it is converted into several quality levels so that it can be played smoothly by all viewers.">
<Help />
</Tooltip>
)}
Expand Down
6 changes: 1 addition & 5 deletions packages/www/components/UsageSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ const UsageSummary = () => {
<Flex align="center" css={{ mr: "$3" }}>
<Tooltip
multiline
content={
<Box>
Usage minutes may take up to an hour to be reflected.
</Box>
}>
content="Usage minutes may take up to an hour to be reflected.">
<Help />
</Tooltip>
</Flex>
Expand Down
11 changes: 8 additions & 3 deletions packages/www/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Banner from "components/Banner";

import { useLoggedIn, useApi } from "hooks";
import { Dashboard as Content } from "content";
import { shouldStripe } from "lib/utils";

const Dashboard = () => {
const { user, verifyEmail, getUserProduct } = useApi();
Expand Down Expand Up @@ -84,9 +85,13 @@ const Dashboard = () => {
<Box css={{ mb: "$9" }}>
<GettingStarted firstName={user?.firstName} />
</Box>
<Box css={{ mb: "100px" }}>
<UsageSummary />
</Box>

{shouldStripe() && (
<Box css={{ mb: "100px" }}>
<UsageSummary />
</Box>
)}

<Box css={{ mb: "$8" }}>
<StreamsTable
title="Streams"
Expand Down
6 changes: 1 addition & 5 deletions packages/www/pages/dashboard/usage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@ const Usage = () => {
<Flex align="center">
<LPTooltip
multiline
content={
<Box>
Usage minutes may take up to an hour to be reflected.
</Box>
}>
content="Usage minutes may take up to an hour to be reflected.">
<Help />
</LPTooltip>
</Flex>
Expand Down
Loading

1 comment on commit 1042884

@vercel
Copy link

@vercel vercel bot commented on 1042884 Aug 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.