ui(admin): update button components, fix Editor for eggs
This commit is contained in:
parent
4e56f6dbea
commit
089860b721
35 changed files with 363 additions and 623 deletions
|
@ -4,7 +4,6 @@ import { useState } from 'react';
|
|||
import Checkbox from '@/components/elements/inputs/Checkbox';
|
||||
import { Dropdown } from '@/components/elements/dropdown';
|
||||
import { Dialog } from '@/components/elements/dialog';
|
||||
import { Button } from '@/components/elements/button';
|
||||
import { User } from '@definitions/admin';
|
||||
|
||||
interface Props {
|
||||
|
@ -18,14 +17,17 @@ const UserTableRow = ({ user, selected, onRowChange }: Props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<Dialog title={'Delete account'} visible={visible} onDismissed={() => setVisible(false)}>
|
||||
<Dialog.Icon type={'danger'} />
|
||||
<Dialog.Confirm
|
||||
title={'Delete account'}
|
||||
open={visible}
|
||||
onClose={() => setVisible(false)}
|
||||
onConfirmed={() => {
|
||||
console.log('yeet');
|
||||
}}
|
||||
>
|
||||
This account will be permanently deleted.
|
||||
<Dialog.Buttons>
|
||||
<Button.Text onClick={() => setVisible(false)}>Cancel</Button.Text>
|
||||
<Button.Danger>Delete</Button.Danger>
|
||||
</Dialog.Buttons>
|
||||
</Dialog>
|
||||
</Dialog.Confirm>
|
||||
|
||||
<tr>
|
||||
<td className={'whitespace-nowrap'}>
|
||||
<div className={'flex justify-end items-center w-8'}>
|
||||
|
|
|
@ -12,6 +12,7 @@ import TFootPaginated from '@/components/elements/table/TFootPaginated';
|
|||
import type { User } from '@definitions/admin';
|
||||
import extractSearchFilters from '@/helpers/extractSearchFilters';
|
||||
import useDebouncedState from '@/plugins/useDebouncedState';
|
||||
import { Shape } from '@/components/elements/button/types';
|
||||
|
||||
const filters = ['id', 'uuid', 'external_id', 'username', 'email'] as const;
|
||||
|
||||
|
@ -77,13 +78,13 @@ const UsersContainer = () => {
|
|||
onChange={onSelectAll}
|
||||
/>
|
||||
</div>
|
||||
<Button.Text square>
|
||||
<Button.Text shape={Shape.IconSquare}>
|
||||
<SupportIcon className={'w-4 h-4'} />
|
||||
</Button.Text>
|
||||
<Button.Text square>
|
||||
<Button.Text shape={Shape.IconSquare}>
|
||||
<LockOpenIcon className={'w-4 h-4'} />
|
||||
</Button.Text>
|
||||
<Button.Text square>
|
||||
<Button.Text shape={Shape.IconSquare}>
|
||||
<TrashIcon className={'w-4 h-4'} />
|
||||
</Button.Text>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue