-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add wrapper components for split and merge functionality
- Loading branch information
Showing
3 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
import { Button } from "@mui/material"; | ||
|
||
interface Props { | ||
claimId: string; | ||
text?: string; | ||
disabled?: boolean; | ||
className?: string; | ||
} | ||
|
||
export function MergeAllClaimFractionsButton({ | ||
text, | ||
claimId, | ||
className, | ||
disabled, | ||
}: Props) { | ||
const onClick = async () => { | ||
console.log("Merging all claim fractions", claimId); | ||
}; | ||
|
||
return ( | ||
<Button disabled={disabled} className={className} onClick={onClick}> | ||
{text} | ||
</Button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Button } from "@mui/material"; | ||
|
||
interface Props { | ||
fractionId: string; | ||
text?: string; | ||
disabled?: boolean; | ||
className?: string; | ||
} | ||
export function SplitFractionButton({ | ||
fractionId, | ||
text, | ||
className, | ||
disabled, | ||
}: Props) { | ||
const onClick = async () => { | ||
console.log("Splitting fraction", fractionId); | ||
}; | ||
|
||
return ( | ||
<Button className={className} disabled={disabled} onClick={onClick}> | ||
{text} | ||
</Button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters