Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
20
node_modules/log-symbols/index.js
generated
vendored
Normal file
20
node_modules/log-symbols/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import chalk from 'chalk';
|
||||
import isUnicodeSupported from 'is-unicode-supported';
|
||||
|
||||
const main = {
|
||||
info: chalk.blue('ℹ'),
|
||||
success: chalk.green('✔'),
|
||||
warning: chalk.yellow('⚠'),
|
||||
error: chalk.red('✖'),
|
||||
};
|
||||
|
||||
const fallback = {
|
||||
info: chalk.blue('i'),
|
||||
success: chalk.green('√'),
|
||||
warning: chalk.yellow('‼'),
|
||||
error: chalk.red('×'),
|
||||
};
|
||||
|
||||
const logSymbols = isUnicodeSupported() ? main : fallback;
|
||||
|
||||
export default logSymbols;
|
Reference in New Issue
Block a user