mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 23:35:59 +00:00
show load error in data grid
This commit is contained in:
26
packages/web/src/widgets/ErrorInfo.js
Normal file
26
packages/web/src/widgets/ErrorInfo.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import React from 'react';
|
||||
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Container = styled.div`
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-right: 10px;
|
||||
`;
|
||||
|
||||
const Icon = styled.div`
|
||||
font-size: 20pt;
|
||||
margin: 10px;
|
||||
color: red;
|
||||
`;
|
||||
|
||||
export default function ErrorInfo({ message }) {
|
||||
return (
|
||||
<Container>
|
||||
<Icon>
|
||||
<i className="fas fa-times-circle" />
|
||||
</Icon>
|
||||
{message}
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user