-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(root): Release 2024-11-20 12:53 (#7084)
- Loading branch information
Showing
104 changed files
with
2,232 additions
and
2,683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
apps/dashboard/src/components/header-navigation/customer-support-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { useBootIntercom } from '@/hooks/use-boot-intercom'; | ||
import { RiCustomerService2Line } from 'react-icons/ri'; | ||
import { HeaderButton } from './header-button'; | ||
|
||
export const CustomerSupportButton = () => { | ||
useBootIntercom(); | ||
|
||
return ( | ||
<button id="intercom-launcher"> | ||
<RiCustomerService2Line className="size-5 cursor-pointer" /> | ||
<button id="intercom-launcher" tabIndex={-1} className="flex items-center justify-center"> | ||
<HeaderButton label="Help"> | ||
<RiCustomerService2Line className="text-foreground-600 size-4" /> | ||
</HeaderButton> | ||
</button> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
apps/dashboard/src/components/header-navigation/header-button.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ReactNode } from 'react'; | ||
import { Tooltip, TooltipContent, TooltipTrigger } from '../primitives/tooltip'; | ||
|
||
export const HeaderButton = ({ | ||
children, | ||
label, | ||
disableTooltip = false, | ||
}: { | ||
children: ReactNode; | ||
label: ReactNode; | ||
disableTooltip?: boolean; | ||
}) => { | ||
return ( | ||
<Tooltip> | ||
<TooltipTrigger asChild> | ||
<div | ||
tabIndex={0} | ||
className="hover:bg-foreground-100 flex h-6 w-6 cursor-pointer items-center justify-center rounded-2xl transition-[background-color,box-shadow] duration-200 ease-in-out focus:outline-none focus:ring-4 focus:ring-neutral-200" | ||
> | ||
{children} | ||
</div> | ||
</TooltipTrigger> | ||
{!disableTooltip && ( | ||
<TooltipContent> | ||
<p>{label}</p> | ||
</TooltipContent> | ||
)} | ||
</Tooltip> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import type { HTMLAttributes } from 'react'; | ||
|
||
type InboxBellFilledProps = { | ||
bellClassName?: string; | ||
ringerClassName?: string; | ||
}; | ||
|
||
export function InboxBellFilled(props: HTMLAttributes<HTMLOrSVGElement> & InboxBellFilledProps) { | ||
return ( | ||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 9 12" {...props}> | ||
<path | ||
className={props.bellClassName} | ||
fill="currentColor" | ||
d="M4.5.856a.642.642 0 0 0-.643.643v.386a3.216 3.216 0 0 0-2.572 3.15v.377c0 .945-.347 1.857-.974 2.564l-.149.167a.642.642 0 0 0 .48 1.07h7.715a.644.644 0 0 0 .48-1.07l-.149-.167a3.863 3.863 0 0 1-.974-2.564v-.377a3.216 3.216 0 0 0-2.572-3.15v-.386A.642.642 0 0 0 4.5.856Z" | ||
></path> | ||
<path | ||
className={props.ringerClassName} | ||
fill="currentColor" | ||
d="M5.41 10.766c.24-.24.375-.568.375-.91H3.214a1.286 1.286 0 0 0 2.196.91Z" | ||
></path> | ||
</svg> | ||
); | ||
} |
Oops, something went wrong.