mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-16 10:03:12 -07:00
refactor: migrate to vite
This commit is contained in:
parent
5d041f6db6
commit
5c69694505
7 changed files with 86 additions and 14 deletions
|
@ -90,7 +90,7 @@ function Bar() {
|
|||
>
|
||||
{menuItems.map((menuItem, index) => {
|
||||
if (
|
||||
menuItem.hasOwnProperty("condition") &&
|
||||
Object.prototype.hasOwnProperty.call(menuItem, "condition") &&
|
||||
!menuItem.condition
|
||||
) {
|
||||
return null;
|
||||
|
|
|
@ -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" />
|
||||
|
|
|
@ -124,7 +124,7 @@ function NetworkRules({ network, callback }) {
|
|||
width: "250px",
|
||||
}}
|
||||
>
|
||||
{!!errors.length ? (
|
||||
{errors.length ? (
|
||||
<Typography color="error">
|
||||
{"[" + errors[0] + ":" + errors[1] + "] " + errors[2]}
|
||||
</Typography>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue