wow
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
4c3d96778d
commit
3253e91d95
4 changed files with 89 additions and 27 deletions
|
|
@ -416,16 +416,28 @@ export default function DashboardPage() {
|
|||
</select>
|
||||
</td>
|
||||
<td className="px-3 py-2">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
void updateRole(user);
|
||||
}}
|
||||
disabled={savingUserId === user.id || (pendingRole[user.id] ?? user.role) === user.role}
|
||||
className="border border-border px-3 py-1 disabled:opacity-50"
|
||||
>
|
||||
{savingUserId === user.id ? "저장 중..." : "저장"}
|
||||
</button>
|
||||
<div className="flex items-center gap-2">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
void updateRole(user);
|
||||
}}
|
||||
disabled={savingUserId === user.id || (pendingRole[user.id] ?? user.role) === user.role}
|
||||
className="border border-border px-3 py-1 disabled:opacity-50"
|
||||
>
|
||||
{savingUserId === user.id ? "저장 중..." : "저장"}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
void deleteUser(user);
|
||||
}}
|
||||
disabled={savingUserId === user.id}
|
||||
className="border border-red-300 bg-red-50 px-3 py-1 text-xs text-red-700 disabled:opacity-50"
|
||||
>
|
||||
삭제
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,10 @@
|
|||
transition-timing-function: var(--ease-out-expo);
|
||||
}
|
||||
|
||||
html, body {
|
||||
overscroll-behavior-y: none;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.image-scale:hover {
|
||||
--tw-scale-x: 105%;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue