Skip to content

Commit

Permalink
Merge pull request #370 from credebl/condition-revoke-button
Browse files Browse the repository at this point in the history
feat: handle conditions for edit passkey button and revoke button
  • Loading branch information
sanjay-k1910 authored Oct 19, 2023
2 parents 1df34b3 + 0ab132c commit cabb8ad
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/commonComponents/DeviceDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const DeviceDetails = (props: { deviceFriendlyName: string, createDateTime: stri
className="p-1 border border-gray-400 rounded hover:bg-gray-100 dark:hover:bg-black dark:text-white dark:hover:text-white"
onClick={(e) => {
e.preventDefault();
props.refreshList()
setOpenEditModel(true)
}}
>
Expand Down
1 change: 0 additions & 1 deletion src/components/Authentication/SignInUser.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../common/global.css'

import * as yup from 'yup';
import { Button, Label} from 'flowbite-react';
import { Field, Form, Formik } from 'formik';
Expand Down
1 change: 0 additions & 1 deletion src/components/Authentication/SignInUserPasskey.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../../common/global.css'

import { Alert, Button } from 'flowbite-react';
import {
UserSignInData,
Expand Down
2 changes: 2 additions & 0 deletions src/components/Profile/AddPasskey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ const AddPasskey = () => {
: [];
if (data?.data?.length === 1) {
setDisableFlag(true);
} else {
setDisableFlag(false);
}
setDeviceList(deviceDetails);
}
Expand Down

0 comments on commit cabb8ad

Please sign in to comment.