Skip to content

Commit 1386448

Browse files
committed
refactor: update imports for SanityImageSource in project and uses components
1 parent 01503bb commit 1386448

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/components/pages/project/project-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import Image from "next/image";
77
import Link from "next/link";
88

99
import { Card, CardDescription, CardTitle } from "@/components/ui/card";
10-
import { SanityImageSource } from "@sanity/image-url/lib/types/types";
1110
import { urlFor } from "@/sanity/lib/image";
11+
import { SanityImageSource } from "@sanity/image-url";
1212

1313
type ProjectCardProps = {
1414
title: string;

src/components/pages/uses/expandable-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useState } from "react";
44
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
55
import UsesCard from "./uses-card";
66
import { Button } from "@/components/ui/button";
7-
import { SanityImageSource } from "@sanity/image-url/lib/types/types";
7+
import { SanityImageSource } from "@sanity/image-url";
88

99
type Skill = {
1010
_id: string;

src/components/pages/uses/uses-card.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
import { Badge } from "@/components/ui/badge";
2+
import { urlFor } from "@/sanity/lib/image";
3+
import { SanityImageSource } from "@sanity/image-url";
4+
import { ArrowUpRightIcon } from "lucide-react";
15
import Image from "next/image";
26
import Link from "next/link";
3-
import { ArrowUpRightIcon } from "lucide-react";
4-
import { SanityImageSource } from "@sanity/image-url/lib/types/types";
5-
import { urlFor } from "@/sanity/lib/image";
6-
import { Badge } from "@/components/ui/badge";
77

88
type UsesCardProps = {
99
title: string;

src/components/theme/theme-provider.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
"use client"
22

3-
import * as React from "react"
4-
import { ThemeProvider as NextThemesProvider } from "next-themes"
5-
import { type ThemeProviderProps } from "next-themes/dist/types"
3+
import { ThemeProvider as NextThemesProvider, type ThemeProviderProps } from "next-themes"
64

75
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
86
return <NextThemesProvider {...props}>{children}</NextThemesProvider>

0 commit comments

Comments
 (0)