mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
Improved waiting indicator
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
} from '../base/text';
|
||||
|
||||
const getColor = (code) => {
|
||||
if (code === 0) {
|
||||
if (code === 'Error') {
|
||||
return '#c0392b';
|
||||
}
|
||||
if (code >= 500) {
|
||||
@@ -37,7 +37,7 @@ const Status = ({
|
||||
}) => (
|
||||
<Wrapper>
|
||||
<Body>{code}</Body>
|
||||
<Icon code={code} />
|
||||
{code !== 'Waiting' && <Icon code={code} />}
|
||||
</Wrapper>
|
||||
)
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ class Network {
|
||||
headers,
|
||||
requestHeaders: this.getAllResponseHeaders(),
|
||||
request: this,
|
||||
status: this.status,
|
||||
status: this.status || 'Error',
|
||||
});
|
||||
})
|
||||
const proxiedSend = this.send;
|
||||
|
||||
Reference in New Issue
Block a user