Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions plugins/hubspot/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ const routes: Route[] = [
element: AccountPage,
title: "Account",
size: {
height: 197,
height: 204,
},
},
{
path: "/chat",
element: ChatPage,
title: "Chat",
title: "Chats",
size: {
height: 380,
height: 401,
},
},
{
Expand All @@ -71,14 +71,14 @@ const routes: Route[] = [
element: TrackingPage,
title: "Tracking",
size: {
height: 172,
height: 179,
},
children: [
{
path: "/learn-more",
element: LearnMoreTrackingPage,
size: {
height: 184,
height: 201,
},
},
],
Expand All @@ -89,7 +89,7 @@ const routes: Route[] = [
path: "/cms",
element: CMSMenuPage,
size: {
height: 141,
height: 320,
},
children: [
{
Expand All @@ -103,7 +103,6 @@ const routes: Route[] = [
{
path: "/hubdb",
element: HubDBPage,
showTopDivider: false,
size: {
width: 320,
height: 305,
Expand Down
13 changes: 8 additions & 5 deletions plugins/hubspot/src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import cx from "classnames"
import { Spinner } from "./Spinner"

interface Props extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: "primary" | "secondary" | "destructive"
variant?: "primary" | "secondary"
isLoading?: boolean
}

export const Button = ({ variant = "primary", children, className, isLoading = false, disabled, ...rest }: Props) => (
<button className={cx(`framer-button-${variant}`, className)} disabled={isLoading || disabled} {...rest}>
{isLoading ? <Spinner inheritColor={variant === "secondary"} className="mx-auto" inline /> : children}
export const Button = ({ variant = "secondary", children, className, isLoading = false, disabled, ...rest }: Props) => (
<button
className={cx(variant === "primary" && "framer-button-primary", className)}
disabled={isLoading || disabled}
{...rest}
>
{isLoading ? <div className="framer-spinner" /> : children}
</button>
)
5 changes: 2 additions & 3 deletions plugins/hubspot/src/components/CenteredSpinner.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import cx from "classnames"
import { Spinner, type SpinnerProps } from "./Spinner"

export const CenteredSpinner = ({ className, size }: { className?: string; size?: SpinnerProps["size"] }) => (
export const CenteredSpinner = ({ className }: { className?: string }) => (
<div className={cx("flex items-center justify-center m-auto", className)}>
<Spinner inheritColor inline size={size} />
<div className="framer-spinner" />
</div>
)
8 changes: 1 addition & 7 deletions plugins/hubspot/src/components/CheckboxTextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ export function CheckboxTextfield({ value, disabled, checked: initialChecked, on
onClick={toggle}
role="button"
>
<input
type="checkbox"
disabled={disabled}
checked={checked}
onChange={toggle}
className="checked:bg-hs-orange! focus:ring-1 focus:ring-hs-orange border-none!"
/>
<input type="checkbox" disabled={disabled} checked={checked} onChange={toggle} />
<input
className="bg-transparent w-full shrink pointer-events-none select-none"
type="text"
Expand Down
15 changes: 15 additions & 0 deletions plugins/hubspot/src/components/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Logo } from "./Logo"

interface Props {
description: string
}

export const HeroSection = ({ description }: Props) => (
<div className="col-lg items-center py-[30px]">
<Logo />
<div className="col items-center">
<h6>Welcome to HubSpot</h6>
<p className="text-center text-tertiary max-w-[200px]">{description}</p>
</div>
</div>
)
Loading
Loading