Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
saltcod committed Dec 4, 2023
1 parent 6c756b8 commit c4b1de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 58 deletions.
46 changes: 0 additions & 46 deletions website/components/access-tokens/AccessTokenCard.tsx

This file was deleted.

14 changes: 2 additions & 12 deletions website/pages/[handle]/_/access-tokens.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Head from 'next/head'
import { MouseEventHandler, useState } from 'react'
import toast from 'react-hot-toast'
import AccessTokenCard from '~/components/access-tokens/AccessTokenCard'

import Form, { FORM_ERROR } from '~/components/forms/Form'
import FormButton from '~/components/forms/FormButton'
import FormInput from '~/components/forms/FormInput'
Expand Down Expand Up @@ -66,17 +66,7 @@ const ApiTokensPage: NextPageWithLayout = () => {
</Button>
</div>
{accessTokensLoading && <p className="dark:text-white">Loading...</p>}
{isAccessTokensSuccess &&
accessTokens.length > 0 &&
accessTokens.map((accessToken) => (
<AccessTokenCard
key={accessToken.id}
tokenId={accessToken.id}
tokenName={accessToken.token_name}
maskedToken={accessToken.masked_token}
createdAt={accessToken.created_at}
/>
))}

{isAccessTokensSuccess && accessTokens.length <= 0 && (
<p className="dark:text-white">
No access tokens found. Click &quot;New Token&quot; to create one.
Expand Down

0 comments on commit c4b1de7

Please sign in to comment.