kyd-shared-badge 0.3.113 → 0.3.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/SharedBadgeDisplay.tsx +13 -17
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ type ChatWidgetProps = Partial<{
|
|
|
52
52
|
// return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
53
53
|
// };
|
|
54
54
|
|
|
55
|
-
const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false
|
|
55
|
+
const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false }: { badgeData: PublicBadgeData, chatProps?: ChatWidgetProps, headless?: boolean, selfCheck?: boolean }) => {
|
|
56
56
|
const {
|
|
57
57
|
badgeId,
|
|
58
58
|
developerName,
|
|
@@ -629,22 +629,18 @@ const SharedBadgeDisplay = ({ badgeData, chatProps, headless, selfCheck = false,
|
|
|
629
629
|
{AppendixSection()}
|
|
630
630
|
</>
|
|
631
631
|
) : (
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
</>
|
|
645
|
-
) : (
|
|
646
|
-
OverviewSection()
|
|
647
|
-
)
|
|
632
|
+
<>
|
|
633
|
+
<TabNav />
|
|
634
|
+
<div className={'px-2 sm:px-0 pb-2'}>
|
|
635
|
+
{activeTab === 'overview' && OverviewSection()}
|
|
636
|
+
{activeTab === 'technical' && TechnicalSection()}
|
|
637
|
+
{activeTab === 'risk' && RiskSection()}
|
|
638
|
+
{/* {activeTab === 'ai' && AiSection()} */}
|
|
639
|
+
{activeTab === 'role' && <RoleFitSection />}
|
|
640
|
+
{activeTab === 'resume' && <ResumeSection />}
|
|
641
|
+
{activeTab === 'appendix' && AppendixSection()}
|
|
642
|
+
</div>
|
|
643
|
+
</>
|
|
648
644
|
)}
|
|
649
645
|
{!headless && (
|
|
650
646
|
<ChatWidget api={chatProps?.api || '/api/chat'} badgeId={badgeId} title={chatProps?.title} hintText={chatProps?.hintText} loginPath={chatProps?.loginPath} headerOffset={chatProps?.headerOffset} developerName={developerName} />
|