refactor: migrate to vite

This commit is contained in:
dec0dOS 2023-10-04 19:17:02 +01:00
parent 5d041f6db6
commit 5c69694505
7 changed files with 86 additions and 14 deletions

View file

@ -90,7 +90,7 @@ function Bar() {
>
{menuItems.map((menuItem, index) => {
if (
menuItem.hasOwnProperty("condition") &&
Object.prototype.hasOwnProperty.call(menuItem, "condition") &&
!menuItem.condition
) {
return null;

View file

@ -6,7 +6,7 @@ import LogInToken from "./components/LogInToken";
function LogIn() {
return (
<>
{process.env.NODE_ENV === "development" && (
{import.meta.env.DEV && (
<>
<LogInToken />
<Divider orientation="vertical" />

View file

@ -124,7 +124,7 @@ function NetworkRules({ network, callback }) {
width: "250px",
}}
>
{!!errors.length ? (
{errors.length ? (
<Typography color="error">
{"[" + errors[0] + ":" + errors[1] + "] " + errors[2]}
</Typography>