diff --git a/src/components/LanguageSwitcher.tsx b/src/components/LanguageSwitcher.tsx
index 8f852a0..28a7fea 100644
--- a/src/components/LanguageSwitcher.tsx
+++ b/src/components/LanguageSwitcher.tsx
@@ -11,9 +11,7 @@ type Props = {
href?: string;
};
-export default function LanguageSwitcher(
- props: Props
-): JSX.Element {
+export default function LanguageSwitcher(props: Props): JSX.Element {
const { locales, langui, href } = props;
const router = useRouter();
diff --git a/src/graphql/operations/getVideosSlugs.graphql b/src/graphql/operations/getVideosSlugs.graphql
index c252c38..6bcc417 100644
--- a/src/graphql/operations/getVideosSlugs.graphql
+++ b/src/graphql/operations/getVideosSlugs.graphql
@@ -1,10 +1,10 @@
query getVideosSlugs {
- videos(pagination: {limit:-1}) {
- data {
- id
- attributes {
- uid
- }
- }
- }
-}
\ No newline at end of file
+ videos(pagination: { limit: -1 }) {
+ data {
+ id
+ attributes {
+ uid
+ }
+ }
+ }
+}
diff --git a/src/pages/archives/videos/[uid].tsx b/src/pages/archives/videos/[uid].tsx
index 87eacd8..72c3d00 100644
--- a/src/pages/archives/videos/[uid].tsx
+++ b/src/pages/archives/videos/[uid].tsx
@@ -86,7 +86,11 @@ export default function Video(props: Props): JSX.Element {
id="video"
className="w-full rounded-xl shadow-shade shadow-lg overflow-hidden"
>
-
+
{video.title}
@@ -114,7 +118,10 @@ export default function Video(props: Props): JSX.Element {
: video.likes.toLocaleString()}
)}
-
+
diff --git a/src/pages/archives/videos/index.tsx b/src/pages/archives/videos/index.tsx
index 7da5a60..ca1dfa0 100644
--- a/src/pages/archives/videos/index.tsx
+++ b/src/pages/archives/videos/index.tsx
@@ -1,5 +1,4 @@
import AppLayout from "components/AppLayout";
-import HorizontalLine from "components/HorizontalLine";
import PanelHeader from "components/PanelComponents/PanelHeader";
import ReturnButton, {
ReturnButtonType,
diff --git a/src/queries/helpers.ts b/src/queries/helpers.ts
index 86d0a07..ef1e9fb 100644
--- a/src/queries/helpers.ts
+++ b/src/queries/helpers.ts
@@ -235,9 +235,11 @@ export function prettyShortenNumber(number: number): string {
maximumSignificantDigits: 3,
});
} else if (number > 1000) {
- return (number / 1000).toLocaleString(undefined, {
- maximumSignificantDigits: 2,
- }) + "K";
+ return (
+ (number / 1000).toLocaleString(undefined, {
+ maximumSignificantDigits: 2,
+ }) + "K"
+ );
}
return number.toLocaleString();
}
@@ -449,10 +451,10 @@ export function getLocalesFromLanguages(
: [];
}
-export function getVideoThumbnailURL(uid: string):string {
+export function getVideoThumbnailURL(uid: string): string {
return `${process.env.NEXT_PUBLIC_URL_WATCH}/videos/${uid}.webp`;
}
-export function getVideoFile(uid: string):string {
+export function getVideoFile(uid: string): string {
return `${process.env.NEXT_PUBLIC_URL_WATCH}/videos/${uid}.mp4`;
-}
\ No newline at end of file
+}