Commit f9804e57 authored by tom's avatar tom

[skip ci] Remove lodash occurrences

parent 079cffa4
import _get from 'lodash/get'; import { get } from 'es-toolkit/compat';
import type { Dictionary } from 'rollbar'; import type { Dictionary } from 'rollbar';
export function isBot(userAgent: string | undefined) { export function isBot(userAgent: string | undefined) {
...@@ -59,7 +59,7 @@ export function getRequestInfo(item: Dictionary): { url: string } | undefined { ...@@ -59,7 +59,7 @@ export function getRequestInfo(item: Dictionary): { url: string } | undefined {
} }
export function getExceptionClass(item: Dictionary) { export function getExceptionClass(item: Dictionary) {
const exceptionClass = _get(item, 'body.trace.exception.class'); const exceptionClass = get(item, 'body.trace.exception.class');
return typeof exceptionClass === 'string' ? exceptionClass : undefined; return typeof exceptionClass === 'string' ? exceptionClass : undefined;
} }
import { Flex, Button, Select } from '@chakra-ui/react'; import { Flex, Button, Select } from '@chakra-ui/react';
import capitalize from 'lodash/capitalize'; import { capitalize } from 'es-toolkit';
import React from 'react'; import React from 'react';
import hexToAddress from 'lib/hexToAddress'; import hexToAddress from 'lib/hexToAddress';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment