Skip to content

Commit

Permalink
chore: resolve some lint issues and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Jan 29, 2025
1 parent 8480f01 commit 7577d4e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
DocumentDuplicateIcon,
ExclamationCircleIcon,
} from '@heroicons/react/24/outline';
import { Image } from '@nextui-org/react';
import { Tooltip } from '@nextui-org/react';
import type { VerifiableCredential } from '@veramo/core';
import clsx from 'clsx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { isError } from '@blockchain-lab-um/masca-connector';
import { Tab } from '@headlessui/react';
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/react';
import type { VerifiableCredential } from '@veramo/core';
import clsx from 'clsx';
import { useTranslations } from 'next-intl';
Expand Down Expand Up @@ -88,8 +88,8 @@ export const CredentialView = ({

return (
<div>
<Tab.Group>
<Tab.List>
<TabGroup>
<TabList>
<div className="dark:bg-navy-blue-700 relative mb-4 flex w-36 shrink-0 justify-between rounded-full bg-white">
<Tab className="outline-none focus-visible:outline-none">
{({ selected }) => (
Expand Down Expand Up @@ -126,15 +126,15 @@ export const CredentialView = ({
JSON
</Tab>
</div>
</Tab.List>
<Tab.Panels>
<Tab.Panel>
</TabList>
<TabPanels>
<TabPanel>
<FormattedPanel credential={credential} />
</Tab.Panel>
<Tab.Panel>
</TabPanel>
<TabPanel>
<JsonPanel data={credential} />
</Tab.Panel>
</Tab.Panels>
</TabPanel>
</TabPanels>
<div className="mt-8 flex justify-end">
<Button variant="cancel" onClick={() => onScanNewCode()}>
{t('cancel')}
Expand All @@ -143,7 +143,7 @@ export const CredentialView = ({
{t('save')}
</Button>
</div>
</Tab.Group>
</TabGroup>
</div>
);
};
1 change: 0 additions & 1 deletion packages/snap/src/UI.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
Italic,
Link,
type JSXElement,
type SnapComponent,
} from '@metamask/snaps-sdk/jsx';
import type { W3CVerifiableCredential } from '@veramo/core';

Expand Down

0 comments on commit 7577d4e

Please sign in to comment.