-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): add upsells for pro edition to settings menu
- Loading branch information
Showing
3 changed files
with
48 additions
and
3 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
27 changes: 27 additions & 0 deletions
27
...keai/frontend/web/src/features/system/components/SettingsModal/SettingsUpsellMenuItem.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,27 @@ | ||
import { Box, Flex, Icon, MenuItem, Text, Tooltip } from '@invoke-ai/ui-library'; | ||
import { useTranslation } from 'react-i18next'; | ||
import type { IconType } from 'react-icons'; | ||
import { PiArrowUpBold } from 'react-icons/pi'; | ||
|
||
export const SettingsUpsellMenuItem = ({ menuText, menuIcon }: { menuText: string; menuIcon: IconType }) => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Tooltip label={t('upsell.professionalUpsell')} placement="right" zIndex={2}> | ||
<MenuItem as="a" href="http://invoke.com/pricing" target="_blank" icon={menuIcon({})}> | ||
<Flex gap="1" alignItems="center"> | ||
<Text pb="2px">{menuText}</Text> | ||
<Box> | ||
<Icon | ||
as={PiArrowUpBold} | ||
sx={{ | ||
mt: '2px', | ||
fill: 'invokeYellow.500', | ||
}} | ||
/> | ||
</Box> | ||
</Flex> | ||
</MenuItem> | ||
</Tooltip> | ||
); | ||
}; |