Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dark mode batch issuance style #455

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions src/components/Credentials/CredentialLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ const CredentialLayout = ({ children, title = null }) => {
const UsageStats = ({ zeroSigCount, sigTotal }) => {
if (zeroSigCount === null || sigTotal === null) return null;

const usageClass = zeroSigCount === 0 ? 'text-orange-600' : 'text-green-600';
const usageClass = zeroSigCount === 0 ? 'text-orange-600 dark:text-orange-500' : 'text-green-600 dark:text-green-500';

return (
<div className={`flex items-center ${screenType === 'mobile' ? 'text-sm' : 'text-md'}`}>
<PiCardsBold size={18} className='text-gray-800 mr-1' />
<p className='text-gray-800 font-base'>
<div className={`flex items-center text-gray-800 dark:text-white ${screenType === 'mobile' ? 'text-sm' : 'text-md'}`}>
<PiCardsBold size={18} className=' mr-1' />
<p className=' font-base'>
<span className={`${usageClass} font-semibold`}>{zeroSigCount}</span>
<span>/{sigTotal}</span> {t('pageCredentials.details.availableUsages')}
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Credentials/UsagesRibbon.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const UsagesRibbon = ({ vcEntityInstances }) => {
return (
<>
{vcEntityInstances &&
<div className={`z-50 absolute top-[-5px] font-semibold right-[-5px] text-white text-xs py-1 px-3 flex gap-1 items-center rounded-lg border-2 border-gray-100 ${zeroSigCount === 0 ? 'bg-orange-500' : 'bg-green-500'}`}>
<div className={`z-50 absolute top-[-5px] font-semibold right-[-5px] text-white text-xs py-1 px-3 flex gap-1 items-center rounded-lg border-2 border-gray-100 dark:border-gray-800 ${zeroSigCount === 0 ? 'bg-orange-500' : 'bg-green-500'}`}>
<PiCardsBold size={18} /> {zeroSigCount}
</div>
}
Expand Down
Loading