Skip to content

Commit

Permalink
fixed types issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tulsiojha committed Jan 14, 2024
1 parent 23ba7bb commit 8d805e6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ const ItemList = () => {
<div>Logs Url: {url}</div>
<LogComp
dark
websocket
websocket={{
account: '',
cluster: '',
trackingId: '',
}}
height="60vh"
width="100%"
url={url}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const Tools = () => {
type: 'text',
search: false,
dataFetcher: async () => {
toast.info(`todo status`);
return [
{ content: 'Active', value: 'active' },
{ content: 'Freezed', value: 'freezed' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Select from '~/components/atoms/select';
import useCustomSwr from '~/root/lib/client/hooks/use-custom-swr';
import { IDomains } from '~/console/server/gql/queries/domain-queries';
import { useMapper } from '~/components/utils';
import { da } from '@faker-js/faker';

type IDialog = IDialogBase<ExtractNodeType<IRouters>>;

Expand Down Expand Up @@ -136,21 +137,20 @@ const Root = (props: IDialog) => {

useEffect(() => {
if (isUpdate) {
setSelectedDomains(
domains.filter((d) => props.data.spec.domains.includes(d.value))
const d = domains.filter((d) =>
props.data.spec.domains.includes(d.value)
);
setSelectedDomains(d);
handleChange('domains')(dummyEvent([...d.map((v) => v.value)]));
}
}, [isUpdate]);
}, [data]);

const nameIDRef = useRef<HTMLInputElement>(null);

useEffect(() => {
nameIDRef.current?.focus();
}, [nameIDRef]);

useEffect(() => {
console.log(errors);
}, [errors]);
return (
<Popup.Form
onSubmit={(e) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useSearchParams } from '@remix-run/react';
import { useMemo } from 'react';
import { toast } from 'react-toastify';
import CommonTools from '~/console/components/common-tools';

const Tools = () => {
Expand All @@ -13,7 +12,6 @@ const Tools = () => {
type: 'text',
search: false,
dataFetcher: async () => {
toast.info(`todo status`);
return [
{ content: 'Active', value: 'active' },
{ content: 'Freezed', value: 'freezed' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ const Log = ({ nodepool }: { nodepool: string }) => {
// />
// }
dark
websocket
websocket={{
account: '',
cluster: '',
trackingId: '',
}}
height="60vh"
width="100%"
url={getUrl(selectOptions[3].from())}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ const Log = () => {
// </div>
// }
dark
websocket
websocket={{
account: '',
trackingId: '',
cluster: '',
}}
height="60vh"
width="100%"
url={getUrl(selectOptions[3].from())}
Expand Down

0 comments on commit 8d805e6

Please sign in to comment.