Skip to content

Commit

Permalink
fix: Minor UI Issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
towfiqi committed Dec 20, 2022
1 parent c2b6328 commit 89824ec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
14 changes: 8 additions & 6 deletions components/domains/DomainHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,14 @@ const DomainHeader = ({ domain, showAddModal, showSettingsModal, exportCsv, doma
className={`hidden w-40 ml-[-70px] lg:block absolute mt-10 bg-white border border-gray-100 z-40 rounded
lg:z-auto lg:relative lg:mt-0 lg:border-0 lg:w-auto lg:bg-transparent`}
style={{ display: showOptions ? 'block' : undefined }}>
<button
className={`domheader_action_button relative ${buttonStyle}`}
aria-pressed="false"
onClick={() => exportCsv()}>
<Icon type='download' size={20} /><i className={`${buttonLabelStyle}`}>Export as csv</i>
</button>
{!isInsight && (
<button
className={`domheader_action_button relative ${buttonStyle}`}
aria-pressed="false"
onClick={() => exportCsv()}>
<Icon type='download' size={20} /><i className={`${buttonLabelStyle}`}>Export as csv</i>
</button>
)}
{!isConsole && !isInsight && (
<button
className={`domheader_action_button relative ${buttonStyle} lg:ml-3`}
Expand Down
7 changes: 4 additions & 3 deletions components/insight/Insight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@ const SCInsight = ({ insight, isLoading = true, isConsoleIntegrated = true }: SC
/>
</div>
</div>
<div className='py-2 text-xs text-center mt-2 lg:text-sm lg:mt-0'>
{isConsoleIntegrated && (<div className='py-2 text-xs text-center mt-2 lg:text-sm lg:mt-0'>
{startDate && new Intl.DateTimeFormat('en-US', { dateStyle: 'medium' }).format(new Date(startDate))}
<span className='px-2 inline-block'>-</span>
{endDate && new Intl.DateTimeFormat('en-US', { dateStyle: 'medium' }).format(new Date(endDate))}
<span className='ml-2'>(Last 30 Days)</span>
</div>
)}
</div>
{activeTab === 'stats' && (
{isConsoleIntegrated && activeTab === 'stats' && (
<InsightStats
stats={insight?.stats ? insight.stats : []}
totalKeywords={insight?.keywords?.length || 0}
Expand All @@ -116,7 +117,7 @@ const SCInsight = ({ insight, isLoading = true, isConsoleIntegrated = true }: SC
)}
{!isConsoleIntegrated && (
<p className=' p-9 pt-[10%] text-center text-gray-500'>
Goolge Search has not been Integrated yet. Please See the Docs to Learn how to integrate Google Search Data for this Domain.
Goolge Search has not been Integrated yet. Please follow <a className='text-indigo-600 underline' href='https://docs.serpbear.com/miscellaneous/integrate-google-search-console' target="_blank" rel='noreferrer'>These Steps</a> integrate Google Search Data for this Domain.
</p>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/keywords/KeywordsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ const KeywordsTable = (props: KeywordsTableProps) => {
scDataType={scDataType}
/>)}
{!isLoading && processedKeywords[device].length === 0 && (
<p className=' p-9 mt-[10%] text-center text-gray-500'>No Keywords Added for this Device Type.</p>
<p className=' p-9 pt-[10%] text-center text-gray-500'>No Keywords Added for this Device Type.</p>
)}
{isLoading && (
<p className=' p-9 mt-[10%] text-center text-gray-500'>Loading Keywords...</p>
<p className=' p-9 pt-[10%] text-center text-gray-500'>Loading Keywords...</p>
)}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/keywords/SCKeywordsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const SCKeywordsTable = ({ domain, keywords = [], isLoading = true, isConsoleInt
)}
{!isConsoleIntegrated && (
<p className=' p-9 pt-[10%] text-center text-gray-500'>
Goolge Search has not been Integrated yet. Please See the Docs to Learn how to integrate Google Search Data for this Domain.
Goolge Search has not been Integrated yet. Please follow <a className='text-indigo-600 underline' href='https://docs.serpbear.com/miscellaneous/integrate-google-search-console' target="_blank" rel='noreferrer'>These Steps</a> integrate Google Search Data for this Domain.
</p>
)}
</div>
Expand Down

0 comments on commit 89824ec

Please sign in to comment.