style: use Button props
This commit is contained in:
Родитель
4769982b9a
Коммит
fe579ca868
|
@ -35,8 +35,8 @@ export const EditDialog = (props) => {
|
|||
onChange={handleInputChange}
|
||||
/>
|
||||
<DialogActionsBar>
|
||||
<Button value={'rename'} className='k-button k-selected' onClick={handleDialogClick}>Rename</Button>
|
||||
<Button value={'cancel'} className='k-button' onClick={handleDialogClick}>Cancel</Button>
|
||||
<Button value={'rename'} themeColor='primary' onClick={handleDialogClick}>Rename</Button>
|
||||
<Button value={'cancel'} themeColor='base' onClick={handleDialogClick}>Cancel</Button>
|
||||
</DialogActionsBar>
|
||||
</DialogComponent>
|
||||
);
|
||||
|
@ -58,8 +58,8 @@ export const DeleteDialog = (props) => {
|
|||
<DialogComponent title={'Please confirm'} onClose={handleDialogClose}>
|
||||
<p style={{ width: '350px', margin: '25px', textAlign: 'center' }}>Are you sure you want to delete the selected file? You cannot undo this action.</p>
|
||||
<DialogActionsBar>
|
||||
<Button value={'delete'} className='k-button k-selected' onClick={handleDialogClick}>Delete</Button>
|
||||
<Button value={'cancel'} className='k-button' onClick={handleDialogClick}>Cancel</Button>
|
||||
<Button value={'delete'} themeColor='primary' onClick={handleDialogClick}>Delete</Button>
|
||||
<Button value={'cancel'} themeColor='base' onClick={handleDialogClick}>Cancel</Button>
|
||||
</DialogActionsBar>
|
||||
</DialogComponent>
|
||||
);
|
||||
|
|
|
@ -129,21 +129,17 @@ export const FileManagerToolbar = (props) => {
|
|||
}
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
className="k-toggle-button k-button-icon k-group-start"
|
||||
togglable={true}
|
||||
icon="k-icon k-i-sort-asc-sm"
|
||||
selected={props.sort[0].dir === 'asc'}
|
||||
onClick={handleAscBtnClick}
|
||||
>
|
||||
<span className="k-icon k-i-sort-asc-sm"></span>
|
||||
</Button>
|
||||
/>
|
||||
<Button
|
||||
className="k-toggle-button k-button k-button-icon k-group-end"
|
||||
togglable={true}
|
||||
icon="k-icon k-i-sort-desc-sm"
|
||||
selected={props.sort[0].dir === 'desc'}
|
||||
onClick={handleDescSortBtnClick}
|
||||
>
|
||||
<span className="k-icon k-i-sort-desc-sm"></span>
|
||||
</Button>
|
||||
/>
|
||||
</ButtonGroup>
|
||||
<SplitButton
|
||||
text={'Sort By'}
|
||||
|
@ -153,21 +149,17 @@ export const FileManagerToolbar = (props) => {
|
|||
</SplitButton>
|
||||
<ButtonGroup>
|
||||
<Button
|
||||
className={"k-toggle-button k-button-icon k-group-start"}
|
||||
togglable={true}
|
||||
icon="k-icon k-i-grid-layout"
|
||||
selected={viewBtnGroup.gridView}
|
||||
onClick={handleGridViewChange}
|
||||
>
|
||||
<span className="k-icon k-i-grid-layout"></span>
|
||||
</Button>
|
||||
/>
|
||||
<Button
|
||||
className={"k-toggle-button k-button-icon k-group-end"}
|
||||
togglable={true}
|
||||
icon="k-icon k-i-grid"
|
||||
selected={viewBtnGroup.listView}
|
||||
onClick={handleListViewChange}
|
||||
>
|
||||
<span className="k-icon k-i-grid"></span>
|
||||
</Button>
|
||||
/>
|
||||
</ButtonGroup>
|
||||
<div className="k-spacer"> </div>
|
||||
<div className="k-filemanager-details-toggle">
|
||||
|
|
Загрузка…
Ссылка в новой задаче