Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add alt prop to feedback widget

Joshen Lim0672fe046444
diff --git a/studio/components/layouts/AppLayout/HeaderBar.tsx b/studio/components/layouts/AppLayout/HeaderBar.tsx
index 2e2dfa5dad6..061df2adebe 100644
--- a/studio/components/layouts/AppLayout/HeaderBar.tsx
+++ b/studio/components/layouts/AppLayout/HeaderBar.tsx
@@ -25,7 +25,7 @@ const HeaderBar = () => {
</div>
<div className="flex items-center space-x-4">
- <FeedbackDropdown />
+ <FeedbackDropdown alt />
<NotificationsPopover alt />
<HelpPopover alt />
<UserSettingsDropdown />
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
index 34efce3944f..00da09d71eb 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown/FeedbackDropdown.tsx
@@ -2,7 +2,11 @@ import { useState } from 'react'
import { Button, IconMessageCircle, Popover } from 'ui'
import FeedbackWidget from './FeedbackWidget'
-const FeedbackDropdown = () => {
+interface FeedbackDropdownProps {
+ alt?: boolean
+}
+
+const FeedbackDropdown = ({ alt = false }: FeedbackDropdownProps) => {
const [isOpen, setIsOpen] = useState(false)
const [feedback, setFeedback] = useState('')
const [screenshot, setScreenshot] = useState<string>()
@@ -41,7 +45,9 @@ const FeedbackDropdown = () => {
asChild
onClick={onOpen}
type="default"
- icon={<IconMessageCircle size={16} strokeWidth={1.5} className="text-scale-900" />}
+ icon={
+ alt ? null : <IconMessageCircle size={16} strokeWidth={1.5} className="text-scale-900" />
+ }
>
<span className="hidden md:flex">Feedback</span>
</Button>