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

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

Loading…
Cancel
Save