Skip to content

Commit

Permalink
upd: remove usage of byProp
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 16, 2023
1 parent 2d63851 commit 47705eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/northstar/src/views/properties.r.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { $clsFunc, MainElRef, byProp, bySelf, ref, view } from "refina";
import { getSelectedProps } from "../utils/props";
import "@refina/fluentui-icons/add.r.ts";
import "@refina/fluentui-icons/subtract.r.ts";
import { $clsFunc, MainElRef, ref, view } from "refina";
import { getSelectedProps } from "../utils/props";

export default view(_ => {
const props = getSelectedProps();
_.for(props, byProp("name"), p => {
_.for(props, "name", p => {
const r = ref() as MainElRef;
_.$cls`col-span-1 flex justify-center items-center border-b border-gray-500 h-8`;
_._div(
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/src/list.r.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentContext, Content, OutputComponent, byIndex, byProp, bySelf } from "refina";
import { ComponentContext, Content, OutputComponent, byIndex, bySelf } from "refina";
import QuasiRuntime from "./plugin";

export interface ListProps {
Expand All @@ -16,7 +16,7 @@ export class ListModel {
export class QList extends OutputComponent {
main(_: ComponentContext, model: ListModel, props: ListProps): void {
_.$cls(props.class);
_.mdList(props.data, props.key === "$index" ? byIndex : props.key === "$self" ? bySelf : byProp(props.key), v => {
_.mdList(props.data, props.key === "$index" ? byIndex : props.key === "$self" ? bySelf : props.key, v => {
model.current = v;
_.embed(props.inner);
});
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/src/table.r.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentContext, Content, OutputComponent, byIndex, byProp, bySelf } from "refina";
import { ComponentContext, Content, OutputComponent, byIndex, bySelf } from "refina";
import QuasiRuntime from "./plugin";

export const currentTableSymbol = Symbol("currentTable");
Expand Down Expand Up @@ -26,7 +26,7 @@ export class QTable extends OutputComponent {
model.renderingState = "head";
_.embed(props.inner);
},
props.key === "$index" ? byIndex : props.key === "$self" ? bySelf : byProp(props.key),
props.key === "$index" ? byIndex : props.key === "$self" ? bySelf : props.key,
v => {
model.renderingState = "body";
model.current = v;
Expand Down
4 changes: 2 additions & 2 deletions packages/visual-flow/src/view/block.r.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentContext, OutputComponent, byIndex, byProp } from "refina";
import { ComponentContext, OutputComponent } from "refina";
import { Block } from "../model";
import Vf from "../plugin";
import styles, { PADDING_FOR_SOCKETS } from "./block.styles";
Expand Down Expand Up @@ -32,7 +32,7 @@ export class VfBlock extends OutputComponent {
d: model.backgroudPath,
});

_.for(model.allSockets, byProp("id"), socket => {
_.for(model.allSockets, "id", socket => {
_.vfSocket(socket);
});
},
Expand Down

0 comments on commit 47705eb

Please sign in to comment.