Skip to content

Commit

Permalink
add placeholder for transfer fraction button (#1201)
Browse files Browse the repository at this point in the history
* add placeholder for transfer fraction button

* remove unnecessary logic from transfer-fraction-button.tsx
  • Loading branch information
Jipperism authored Dec 1, 2023
1 parent de5e0d0 commit 31ac54c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
30 changes: 30 additions & 0 deletions frontend/components/transfer-fraction-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Button } from "@mui/material";
import React from "react";

interface Props {
fractionId: string;
text?: string;
disabled?: boolean;
className?: string;
}
export function TransferFractionButton({
fractionId,
text,
className,
disabled,
}: Props) {
return (
<Button
onClick={() =>
console.log({
fractionId,
text,
className,
disabled,
})
}
>
Send
</Button>
);
}
17 changes: 17 additions & 0 deletions frontend/plasmic-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import "primereact/resources/primereact.min.css";
import "primereact/resources/themes/tailwind-light/theme.css";
import { MergeAllClaimFractionsButton } from "./components/merge-all-claim-fractions-button";
import { SplitFractionButton } from "./components/split-fraction-button";
import { TransferFractionButton } from "./components/transfer-fraction-button";

export const PLASMIC = initPlasmicLoader({
projects: [
Expand Down Expand Up @@ -673,6 +674,22 @@ PLASMIC.registerComponent(ProjectsClientProvider, {
},
});

PLASMIC.registerComponent(TransferFractionButton, {
name: "TransferFractionButton",
description: "Button that will transfer the fraction currently selected",
props: {
text: {
type: "string",
defaultValue: "Transfer",
helpText: "Text to display on button",
},
fractionId: "string",
disabled: "boolean",
className: "string",
},
importPath: "./components/transfer-fraction-button",
});

PLASMIC.registerComponent(MergeAllClaimFractionsButton, {
name: "MergeAllClaimFractionsButton",
description:
Expand Down

0 comments on commit 31ac54c

Please sign in to comment.