diff --git a/frontend/web/src/components/CreateCollectionDrawer.tsx b/frontend/web/src/components/CreateCollectionDrawer.tsx index d74573e..15fefbb 100644 --- a/frontend/web/src/components/CreateCollectionDrawer.tsx +++ b/frontend/web/src/components/CreateCollectionDrawer.tsx @@ -145,7 +145,7 @@ const CreateCollectionDrawer: React.FC = (props: Props) => { {isCreating ? "Create Collection" : "Edit Collection"} -
+
Name * @@ -240,7 +240,7 @@ const CreateCollectionDrawer: React.FC = (props: Props) => {
-
+
diff --git a/frontend/web/src/components/CreateShortcutDrawer.tsx b/frontend/web/src/components/CreateShortcutDrawer.tsx index 7374ab4..cb60514 100644 --- a/frontend/web/src/components/CreateShortcutDrawer.tsx +++ b/frontend/web/src/components/CreateShortcutDrawer.tsx @@ -215,7 +215,7 @@ const CreateShortcutDrawer: React.FC = (props: Props) => { {isCreating ? "Create Shortcut" : "Edit Shortcut"} -
+
Name * @@ -373,7 +373,7 @@ const CreateShortcutDrawer: React.FC = (props: Props) => {
-
+
diff --git a/frontend/web/src/components/ShortcutFrame.tsx b/frontend/web/src/components/ShortcutFrame.tsx new file mode 100644 index 0000000..324b991 --- /dev/null +++ b/frontend/web/src/components/ShortcutFrame.tsx @@ -0,0 +1,41 @@ +import { Divider } from "@mui/joy"; +import classNames from "classnames"; +import { Link } from "react-router-dom"; +import { getFaviconWithGoogleS2 } from "@/helpers/utils"; +import { Shortcut } from "@/types/proto/api/v2/shortcut_service"; +import Icon from "./Icon"; + +interface Props { + shortcut: Shortcut; +} + +const ShortcutFrame = ({ shortcut }: Props) => { + const favicon = getFaviconWithGoogleS2(shortcut.link); + + return ( +
+ +
+ {favicon ? ( + + ) : ( + + )} +
+

{shortcut.title || shortcut.name}

+

{shortcut.description}

+ +

+ Open this site in a new tab + +

+ +
+ ); +}; + +export default ShortcutFrame; diff --git a/frontend/web/src/pages/CollectionDashboard.tsx b/frontend/web/src/pages/CollectionDashboard.tsx index 686bba9..2277127 100644 --- a/frontend/web/src/pages/CollectionDashboard.tsx +++ b/frontend/web/src/pages/CollectionDashboard.tsx @@ -45,19 +45,6 @@ const CollectionDashboard: React.FC = () => { return ( <>
-
{ return ( { {sm && (
{selectedShortcut ? ( -
- - -

{selectedShortcut.title || selectedShortcut.name}

-

{selectedShortcut.description}

- -

- Open this site in a new tab - -

- -
+ ) : (
-
- +
+

Click on a tab in the Sidebar to get started.

-

- Shared by {creator.nickname} +

+ Shared by {creator.nickname}

diff --git a/frontend/web/src/pages/Home.tsx b/frontend/web/src/pages/Home.tsx index 00dc7c6..b977e70 100644 --- a/frontend/web/src/pages/Home.tsx +++ b/frontend/web/src/pages/Home.tsx @@ -63,7 +63,7 @@ const Home: React.FC = () => {