Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarlosn committed Jul 5, 2024
2 parents f68cc51 + e04e1c5 commit b1dba32
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion packages/protolib/components/ObjectForm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react"
import { EditableObject } from './EditableObject';
import { API, getPendingResult } from '../base';
import { API } from '../base';
import { getPendingResult } from 'protolib/base/PendingResult';
import { useToastController, Text, YStack } from '@my/ui';
import { z } from "protolib/base";

Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/lib/Auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API } from "../base/Api"
import { RegisterSchema } from 'app/schema';
import {getPendingResult} from 'protolib';
import { getPendingResult } from 'protolib/base/PendingResult';
import { z } from "protolib/base";

export const Auth = {
Expand Down
2 changes: 1 addition & 1 deletion packages/protolib/lib/createApiAtom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { atom } from "jotai";
import { PendingResult, getPendingResult } from "../base";
import { PendingResult, getPendingResult } from "../base/PendingResult";

export const createApiAtom = (initialState) => atom<PendingResult>(getPendingResult("pending", initialState))
2 changes: 1 addition & 1 deletion packages/protolib/lib/useRedirectToEnviron.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppConfContext, SiteConfigType } from 'protolib';
import { AppConfContext } from 'protolib/providers/AppConf';
import { getWorkspaceEnv } from './useWorkspaceEnv';
import { useContext, useEffect } from 'react';
import { useRouter, usePathname } from 'solito/navigation';
Expand Down
3 changes: 2 additions & 1 deletion packages/protolib/lib/useRemoteState.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect, useRef, useState } from 'react';
import { API, usePendingEffect, useSubscription } from 'protolib';
import { usePendingEffect } from 'protolib/lib/usePendingEffect';
import useSubscription from 'protolib/lib/mqtt/useSubscription';
import { PendingResult } from '../base';

export const useRemoteStateList = (items, fetch, topic, model, quickRefresh=false) => { // Quick refresh skips fetch when a change is detected
Expand Down
2 changes: 0 additions & 2 deletions packages/visualui/src/components/RenderNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ export const RenderNode = ({ render, onEnableEvents, metadata }) => {
: null
}
{
custom.options || deletable ?
<UIMenu
onOpenChange={onEnableEvents}
trigger={
Expand Down Expand Up @@ -353,7 +352,6 @@ export const RenderNode = ({ render, onEnableEvents, metadata }) => {
</>
}
/>
: null
}
</div>
</div >,
Expand Down

0 comments on commit b1dba32

Please sign in to comment.