update: adjust TableList component for improved data display and enhance ListDevice component styles

This commit is contained in:
2025-10-06 08:47:07 +07:00
parent d469992ee2
commit 0d97a1978e
4 changed files with 11 additions and 9 deletions

View File

@@ -247,7 +247,6 @@ const TableList = memo(function TableList({
loading={gridLoading} loading={gridLoading}
scroll={{ scroll={{
y: 520, y: 520,
}} }}
/> />
@@ -256,7 +255,7 @@ const TableList = memo(function TableList({
<Row justify="space-between" align="middle"> <Row justify="space-between" align="middle">
<Col> <Col>
<div> <div>
Menampilkan {pagingResponse.totalData} Data dari{' '} Menampilkan {pagingResponse.totalPage} Data dari{' '}
{pagingResponse.perPage} Halaman {pagingResponse.perPage} Halaman
</div> </div>
</Col> </Col>

View File

@@ -10,14 +10,14 @@ const LayoutLogo = () => {
display: 'flex', display: 'flex',
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
backgroundColor: '#001529',
padding: '1rem', padding: '1rem',
borderRadius: '1rem', borderRadius: '1rem',
}} }}
> >
<div <div
style={{ style={{
background: 'radial-gradient(circle at center, rgba(255,255,255,0.95), rgba(220,220,220,0.5))', background:
'radial-gradient(circle at center, rgba(255,255,255,0.95), rgba(220,220,220,0.5))',
borderRadius: '50%', borderRadius: '50%',
width: 160, width: 160,
height: 160, height: 160,
@@ -26,7 +26,7 @@ const LayoutLogo = () => {
alignItems: 'center', alignItems: 'center',
boxShadow: '0 6px 20px rgba(0, 0, 0, 0.2)', boxShadow: '0 6px 20px rgba(0, 0, 0, 0.2)',
position: 'relative', position: 'relative',
overflow: 'hidden' overflow: 'hidden',
}} }}
> >
{/* Ring sebelum logo utama */} {/* Ring sebelum logo utama */}
@@ -37,7 +37,7 @@ const LayoutLogo = () => {
width: 160, width: 160,
height: 160, height: 160,
position: 'absolute', position: 'absolute',
zIndex: 1 zIndex: 1,
}} }}
/> />
@@ -66,4 +66,4 @@ const LayoutLogo = () => {
); );
}; };
export default LayoutLogo; export default LayoutLogo;

View File

@@ -57,7 +57,7 @@ const SignIn = () => {
localStorage.setItem('token', accessToken); localStorage.setItem('token', accessToken);
localStorage.setItem('user', JSON.stringify(user)); localStorage.setItem('user', JSON.stringify(user));
NotifOk({ NotifAlert({
icon: 'success', icon: 'success',
title: 'Login Berhasil', title: 'Login Berhasil',
message: res?.message || 'Selamat datang!', message: res?.message || 'Selamat datang!',

View File

@@ -45,7 +45,7 @@ const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [
title: 'Device Code', title: 'Device Code',
dataIndex: 'device_code', dataIndex: 'device_code',
key: 'device_code', key: 'device_code',
width: '5%', width: '10%',
}, },
{ {
title: 'Device Name', title: 'Device Name',
@@ -94,17 +94,20 @@ const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [
<Space> <Space>
<Button <Button
type="text" type="text"
style={{ borderColor: '#1890ff' }}
icon={<EyeOutlined style={{ color: '#1890ff' }} />} icon={<EyeOutlined style={{ color: '#1890ff' }} />}
onClick={() => showPreviewModal(record)} onClick={() => showPreviewModal(record)}
/> />
<Button <Button
type="text" type="text"
style={{ borderColor: '#faad14' }}
icon={<EditOutlined style={{ color: '#faad14' }} />} icon={<EditOutlined style={{ color: '#faad14' }} />}
onClick={() => showEditModal(record)} onClick={() => showEditModal(record)}
/> />
<Button <Button
type="text" type="text"
danger danger
style={{ borderColor: 'red' }}
icon={<DeleteOutlined />} icon={<DeleteOutlined />}
onClick={() => showDeleteDialog(record)} onClick={() => showDeleteDialog(record)}
/> />