Skip to content

Commit

Permalink
chore: remove props, clarify CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Oct 31, 2024
1 parent b472bec commit cc65ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Changed

- Removed heading and description from `ProposalVoting` terminal
- Remove `title` and `description` properties from `ProposalVoting` module component

## [1.0.52] - 2024-10-30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@ import React, { Children, type ComponentProps } from 'react';
import { Accordion, Card } from '../../../../../core';

export interface IProposalVotingContainerProps extends ComponentProps<'div'> {
/**
* Title displayed on top.
*/
title: string;
/**
* Description of the proposal voting.
*/
description: string;
/**
* Active stage that will be expanded by default for multi-stage proposals.
*/
activeStage?: string;
}

export const ProposalVotingContainer: React.FC<IProposalVotingContainerProps> = (props) => {
const { title, description, className, children, activeStage, ...otherProps } = props;
const { className, children, activeStage, ...otherProps } = props;

const processedChildren = Children.toArray(children);
const isMultiStage = processedChildren.length > 1;
Expand Down

0 comments on commit cc65ab2

Please sign in to comment.