update log style

pull/2246/head
yann300 3 years ago
parent cbda1b2b80
commit bf670110fe
  1. 6
      libs/remix-ui/terminal/src/lib/reducers/terminalReducer.ts
  2. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -76,7 +76,7 @@ export const registerCommandReducer = (state, action) => {
case LISTEN_ON_NETWORK:
return {
...state,
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-info' })
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-log' })
}
default :
return { state }
@ -149,12 +149,12 @@ export const registerScriptRunnerReducer = (state, action) => {
case LOG:
return {
...state,
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-info', provider: action.payload.provider })
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-log', provider: action.payload.provider })
}
case INFO:
return {
...state,
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-info', provider: action.payload.provider })
journalBlocks: initialState.journalBlocks.push({ message: action.payload.message, style: 'text-log', provider: action.payload.provider })
}
case WARN:
return {

@ -273,7 +273,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
}
mode = {
log: 'text-log',
info: 'text-info',
info: 'text-log',
warn: 'text-warning',
error: 'text-danger'
}[mode] // defaults

Loading…
Cancel
Save