Skip to content

Commit c5ef55e

Browse files
committed
packages/ui: Add scroll-shadow (#7924)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the `ScrollShadow` component by consolidating its usage across various applications and removing redundant files. It also enhances the component's styling and functionality. ### Detailed summary - Deleted multiple `ScrollShadow` component files from various apps. - Created a new `ScrollShadow` component in `packages/ui/src/components/scroll-shadow.tsx`. - Updated import paths for `ScrollShadow` in multiple files across the applications. - Simplified styling by removing CSS module imports and integrating styles directly within the component. - Added new CSS properties for shadows as inline styles. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent afd1150 commit c5ef55e

File tree

39 files changed

+87
-466
lines changed

39 files changed

+87
-466
lines changed

apps/dashboard/src/@/components/blocks/error-fallbacks/unexpect-value-error-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useMemo } from "react";
22
import { CopyTextButton } from "@/components/ui/CopyTextButton";
3-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
3+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
44

55
export function UnexpectedValueErrorMessage(props: {
66
value: unknown;

apps/dashboard/src/@/components/blocks/multi-select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
PopoverContent,
1111
PopoverTrigger,
1212
} from "@/components/ui/popover";
13-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
13+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
1414
import { Separator } from "@/components/ui/separator";
1515
import { useShowMore } from "@/hooks/useShowMore";
1616
import { cn } from "@/lib/utils";

apps/dashboard/src/@/components/blocks/select-with-search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
PopoverContent,
1111
PopoverTrigger,
1212
} from "@/components/ui/popover";
13-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
13+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
1414
import { useShowMore } from "@/hooks/useShowMore";
1515
import { cn } from "@/lib/utils";
1616

apps/dashboard/src/@/components/chat/CustomChats.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
DialogHeader,
1616
DialogTitle,
1717
} from "@/components/ui/dialog";
18-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
18+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
1919
import { cn } from "@/lib/utils";
2020
import { ThirdwebMiniLogo } from "../../../app/(app)/components/ThirdwebMiniLogo";
2121
import { SupportTicketForm } from "../../../app/(app)/team/[team_slug]/(team)/~/support/_components/SupportTicketForm";

apps/dashboard/src/@/components/cmd-k-search/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
DialogTitle,
2323
} from "@/components/ui/dialog";
2424
import { Input } from "@/components/ui/input";
25-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
25+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
2626
import { Spinner } from "@/components/ui/Spinner/Spinner";
2727
import { ChainIconClient } from "@/icons/ChainIcon";
2828
import { useDashboardRouter } from "@/lib/DashboardRouter";

apps/dashboard/src/@/components/misc/configure-networks/ConfigureNetworkForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Button } from "@/components/ui/button";
77
import { Input } from "@/components/ui/input";
88
import { Label } from "@/components/ui/label";
99
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
10-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
10+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
1111
import { useAllChainsData } from "@/hooks/chains/allChains";
1212
import { ChainIconClient } from "@/icons/ChainIcon";
1313
import { useStore } from "@/lib/reactive";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { ScrollShadow } from "@workspace/ui/components/scroll-shadow";

apps/dashboard/src/@/components/ui/ScrollShadow/ScrollShadow.module.css

Lines changed: 0 additions & 36 deletions
This file was deleted.

apps/dashboard/src/@/components/ui/ScrollShadow/ScrollShadow.tsx

Lines changed: 0 additions & 151 deletions
This file was deleted.

apps/dashboard/src/@/components/ui/code/CodeBlockContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { CheckIcon, CopyIcon } from "lucide-react";
44
import { Button } from "@/components/ui/button";
5-
import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
5+
import { ScrollShadow } from "@/components/ui/ScrollShadow";
66
import { useClipboard } from "@/hooks/useClipboard";
77
import { cn } from "@/lib/utils";
88

0 commit comments

Comments
 (0)