Skip to content

Commit b16df94

Browse files
committed
add powered by in embedded
1 parent 58bc154 commit b16df94

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web/src/components/common/App.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ const AppLoggedIn = forwardRef((_props, ref) => {
200200
// const isDevToolsOpen = useSelector((state: RootState) => state.settings.isDevToolsOpen)
201201
const platformShortcut = getPlatformShortcut()
202202
const width = getParsedIframeInfo().width
203+
const isEmbedded = getParsedIframeInfo().isEmbedded as unknown === 'true'
204+
203205
const clearMessages = () => {
204206
if (taskInProgress) {
205207
dispatch(abortPlan())
@@ -211,7 +213,7 @@ const AppLoggedIn = forwardRef((_props, ref) => {
211213
const subscribed = useSelector((state: RootState) => state.billing.isSubscribed)
212214
const drMode = useSelector((state: RootState) => state.settings.drMode)
213215
return (
214-
<HStack>
216+
<HStack aria-label='mx-mode'>
215217
{ !subscribed && <Link href={"https://minusx.ai/pricing/"} isExternal display={"flex"} fontSize="xs" color="minusxGreen.800" fontWeight={"bold"} alignItems={"center"} title="A taste of what's possible. Great if you're just exploring MinusX to get a feel for the product. Switch to pro for an advanced experience." ><BiSolidLockAlt /> Basic Plan</Link> }
216218
{ subscribed && <Link href={"https://minusx.ai/pricing/"} isExternal display={"flex"} fontSize="xs" color="minusxGreen.800" fontWeight={"bold"} alignItems={"center"}><BiSolidStar /> Pro Plan</Link> }
217219
{/* {drMode && <Link href={"https://minusx.ai/pricing/"} isExternal display={"flex"} fontSize="xs" color="minusxGreen.800" fontWeight={"bold"} alignItems={"center"}><BiSolidRocket /> Enterprise Plan</Link> } */}
@@ -296,8 +298,9 @@ const AppLoggedIn = forwardRef((_props, ref) => {
296298
{/* {sidePanelTabName === 'settings' ? <Settings /> : null} */}
297299
<HStack justifyContent="space-between" alignItems="center" width="100%" py="1" aria-label="app-footer">
298300
{/* {configs.IS_DEV ? <DevToolsToggle size={"micro"}/> : null} */}
299-
{ !isSheets && <DevToolsToggle size={"micro"}/>}
300-
{ !isSheets && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{platformShortcut} to toggle</Text>}
301+
{ !isSheets && <Box aria-label="settings-toggle"><DevToolsToggle size={"micro"}/></Box> }
302+
{ !isSheets && !isEmbedded && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{platformShortcut} to toggle</Text>}
303+
{isEmbedded && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>{"Powered by MinusX"}</Text>}
301304
{/* { tool==='metabase' && <Text fontSize="xs" color="minusxGreen.800" fontWeight={"bold"}>[-{metabaseMode} Mode-]</Text>} */}
302305
{/* <SupportButton email={email} /> */}
303306
</HStack>

0 commit comments

Comments
 (0)