Skip to content

Commit

Permalink
Merge pull request #340 from alleslabs/fix/past-txs-resend-redo
Browse files Browse the repository at this point in the history
fix: remove resend and redo button in accordion if relation is related
  • Loading branch information
evilpeach authored May 18, 2023
2 parents c2a8d42 + 987b9a8 commit ae56164
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [$340](https://github.com/alleslabs/celatone-frontend/pull/340) Remove resend and redo button in accordion if relation is related (Past txs page)
- [#337](https://github.com/alleslabs/celatone-frontend/pull/337) Fix beforeunload keep showing up Leave modal
- [#330](https://github.com/alleslabs/celatone-frontend/pull/330) Fix proposal table component propagation

Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/table/AccordionTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { TableRow } from "./tableComponents";
interface AccordionTxProps {
message: Message;
allowFurtherAction: boolean;
isSigner?: boolean;
accordionSpacing?: GridItemProps["pl"];
}

Expand All @@ -36,6 +37,7 @@ const RenderButton = ({ message }: RenderButtonProps) => {
export const AccordionTx = ({
message,
allowFurtherAction,
isSigner = false,
accordionSpacing = "206px",
}: AccordionTxProps) => {
const [showButton, setShowButton] = useState(false);
Expand Down Expand Up @@ -63,7 +65,7 @@ export const AccordionTx = ({
success
singleMsg
/>
{allowFurtherAction && (
{allowFurtherAction && isSigner && (
<SlideFade in={showButton} offsetY="20px">
<RenderButton message={message} />
</SlideFade>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export const TransactionsTableRow = ({
<Grid w="full" py={4} hidden={!isOpen}>
{transaction.messages.map((msg, index) => (
<AccordionTx
isSigner={transaction.isSigner}
key={index.toString() + msg.type}
message={msg}
allowFurtherAction={showAction}
Expand Down

1 comment on commit ae56164

@vercel
Copy link

@vercel vercel bot commented on ae56164 May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.