Skip to content

Commit

Permalink
Rename Attributes to Params
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Apr 11, 2024
1 parent b571e1e commit 43b83ef
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/app/(sidebar)/transaction/build/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function BuildTransaction() {
// TODO: add info links
// TODO: use store values
// TODO: validation
const renderAttributes = () => {
const renderParams = () => {
return (
<Box gap="md">
<>
Expand Down Expand Up @@ -172,9 +172,9 @@ export default function BuildTransaction() {
<TabView
heading={{ title: "Build Transaction" }}
tab1={{
id: "attributes",
label: "Attributes",
content: renderAttributes(),
id: "params",
label: "Params",
content: renderParams(),
}}
tab2={{
id: "operations",
Expand Down
6 changes: 3 additions & 3 deletions src/store/createStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface Store {
transaction: {
build: {
activeTab: string;
attributes: AnyObject;
params: AnyObject;
operations: AnyObject[];
};
// TODO: update as needed
Expand All @@ -69,8 +69,8 @@ const initEndpointState = {

const initTransactionState = {
build: {
activeTab: "attributes",
attributes: {},
activeTab: "params",
params: {},
operations: [],
},
};
Expand Down

0 comments on commit 43b83ef

Please sign in to comment.