-
-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After clicking the FETCH button, if the data is fetched successfully then a new button labelled as 'MORE' appears, clicking on this opens a dropdown menu which has 3 options: Disable2fa, Disable Passkeys and Close Family, clicking on any of the option directly performs the action required.
- Loading branch information
Showing
9 changed files
with
5,793 additions
and
557 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
"dependencies": { | ||
"react": "^18", | ||
"react-dom": "^18", | ||
"react-toastify": "^10.0.5", | ||
"zod": "^3" | ||
}, | ||
"devDependencies": { | ||
|
@@ -28,7 +29,7 @@ | |
"prettier": "^3", | ||
"prettier-plugin-organize-imports": "^3.2", | ||
"prettier-plugin-packagejson": "^2.5", | ||
"typescript": "^5", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
.fetch-button-container { | ||
margin-right: 180px; | ||
margin-left: 10px; | ||
} | ||
|
||
.content-wrapper { | ||
display: flex; | ||
align-items: flex-start; | ||
margin-left: 175px; | ||
} | ||
|
||
.fetch-button-container button { | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
cursor: pointer; | ||
background-color: #009879; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
margin-top: 20px; | ||
} | ||
|
||
.fetch-button-container button:hover { | ||
background-color: #007c6c; | ||
} | ||
|
||
.sidebar { | ||
padding: 20px; | ||
flex: 0 0 auto; | ||
} | ||
|
||
.button-container { | ||
display: flex; | ||
gap: 10px; | ||
} | ||
|
||
button { | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
} | ||
|
||
.error-message { | ||
margin-top: 20px; | ||
color: red; | ||
} | ||
|
||
.message { | ||
position: fixed; | ||
bottom: 10px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
padding: 10px; | ||
border-radius: 5px; | ||
background-color: #f0f0f0; | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); | ||
} | ||
|
||
.message.error { | ||
background-color: #f44336; | ||
color: white; | ||
} | ||
|
||
.message.success { | ||
background-color: #4caf50; | ||
color: white; | ||
} | ||
|
||
.dropdown-container { | ||
margin-bottom: 20px; | ||
position: relative; /* Ensure relative positioning for dropdown menu */ | ||
} | ||
|
||
.more-button { | ||
padding: 10px 20px; | ||
font-size: 16px; | ||
cursor: pointer; | ||
background-color: #009879; | ||
color: white; | ||
border: none; | ||
border-radius: 5px; | ||
margin-top: 1px; | ||
} | ||
|
||
.more-button:hover { | ||
background-color: #007c6c; | ||
} | ||
|
||
.dropdown-menu { | ||
position: absolute; | ||
top: calc(100% + 5px); /* Position right below the More button */ | ||
left: 0; | ||
z-index: 100; | ||
display: block; | ||
background-color: #fff; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
padding: 10px; | ||
max-height: 150px; /* Example: Set max height for scrollability */ | ||
overflow-y: auto; /* Enable vertical scroll */ | ||
} | ||
|
||
/* Remove bullets from unordered list */ | ||
.dropdown-menu ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.dropdown-menu button { | ||
display: block; | ||
width: 100%; | ||
padding: 8px 16px; | ||
font-size: 14px; | ||
color: #333; | ||
background-color: transparent; | ||
border: none; | ||
cursor: pointer; | ||
transition: background-color 0.3s ease; | ||
} | ||
|
||
.dropdown-menu button:hover { | ||
background-color: #f0f0f0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.