Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/dashboard/widgets/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const Widgets = () => {
<button style={getTabButtonStyle('tab1')} onClick={() => handleTabChange('tab1')}>User Management</button>
<button style={getTabButtonStyle('tab2')} onClick={() => handleTabChange('tab2')}>Role Management</button>
<button style={getTabButtonStyle('tab3')} onClick={() => handleTabChange('tab3')}>Access Key Management</button>
<button style={getTabButtonStyle('tab4')} onClick={() => handleTabChange('tab4')}>Tenant Profile Widget</button>
</div>

{/* Keying the tab content with selectedTenantId to force re-render upon tenant change */}
Expand All @@ -92,6 +93,9 @@ const Widgets = () => {
{activeTab === 'tab3' && (
<AccessKeyManagement key={selectedTenantId} widgetId="access-key-management-widget" tenant={selectedTenantId} />
)}
{activeTab === 'tab4' && (
<AccessKeyManagement key={selectedTenantId} widgetId="tenant-profile-widget" tenant={selectedTenantId} />
)}
</div>
</div>
);
Expand Down
Loading