Skip to content

Commit

Permalink
Main Bug Fixes (#896)
Browse files Browse the repository at this point in the history
* First Commit including sidebar changes

* Main Bug Fixes

* Main Bug Fixes
  • Loading branch information
jedan2506 authored Jul 28, 2023
1 parent eecbeaf commit 1faca30
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 12 deletions.
36 changes: 26 additions & 10 deletions gui/pages/Content/Marketplace/AgentTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,32 @@ export default function AgentTemplate({template, env}) {
<span style={{fontSize: '12px', marginTop: '15px',}} className={styles.tool_publisher}>By SuperAGI <Image
width={14} height={14} src="/images/is_verified.svg" alt="is_verified"/>&nbsp;{'\u00B7'}&nbsp;<Image
width={14} height={14} src="/images/upload_icon.svg" alt="upload-icon"/></span>
<button className="primary_button" style={{
marginTop: '15px',
width: '100%',
background: isInstalled || (template && template.is_installed) ? 'rgba(255, 255, 255, 0.14)' : '#FFF',
color: isInstalled || (template && template.is_installed) ? '#FFFFFF' : '#000'
}} onClick={() => handleInstallClick()}>
{(isInstalled || (template && template.is_installed)) ?
<Image width={14} height={14} src="/images/tick.svg" alt="tick-icon"/> :
<Image width={14} height={14} src="/images/upload_icon_dark.svg"
alt="upload-icon"/>}&nbsp;{installed}</button>
{isInstalled || (template && template.is_installed) ? (
<button
className="primary_button"
style={{
marginTop: '15px',
width: '100%',
background: 'rgba(255, 255, 255, 0.14)',
color: '#FFFFFF'
}}
>
<Image width={14} height={14} src="/images/tick.svg" alt="tick-icon"/>&nbsp; Installed
</button>
) : (
<button
className="primary_button"
style={{
marginTop: '15px',
width: '100%',
background: '#FFF',
color: '#000'
}}
onClick={() => handleInstallClick()}
>
<Image width={14} height={14} src="/images/upload_icon_dark.svg" alt="upload-icon"/>&nbsp; Install
</button>
)}

<hr className={styles2.horizontal_line}/>

Expand Down
2 changes: 1 addition & 1 deletion gui/pages/Content/Marketplace/KnowledgeTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export default function KnowledgeTemplate({template, env}) {
<div style={{overflowY: 'scroll', height: '84vh'}}>
<div className={styles2.left_container}
style={{marginBottom: '5px', color: 'white', padding: '16px'}}>
<span className={styles2.description_text}>Overview</span><br/>
<span className="text_20_bold">Overview</span><br/>
{/*{templateData?.overview.map((item, index) => (<div key={index} style={{marginTop: '0'}}>*/}
{/* <div className={styles2.description_text}>{index + 1}. {item || ''}</div>*/}
{/* {index !== item.length - 1}*/}
Expand Down
Binary file added gui/public/images/notion_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion gui/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const toolkitData = {
'Image Generation Toolkit': '/images/app-logo-light.png',
'DuckDuckGo Search Toolkit': '/images/duckduckgo_icon.png',
'Instagram Toolkit': '/images/instagram.png',
'Knowledge Search Toolkit': '/images/knowledeg_logo.png'
'Knowledge Search Toolkit': '/images/knowledeg_logo.png',
'Notion Toolkit': '/images/notion_logo.png',
};

export const getUserTimezone = () => {
Expand Down

0 comments on commit 1faca30

Please sign in to comment.