Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmDRepRegistration } from './ConfirmDRepRegistration';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmDRepRegistration> = {
title: 'ConfirmDRepRegistration',
title: 'Sanchonet/Certificates/ConfirmDRepRegistration',
component: ConfirmDRepRegistration,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmDRepRetirement } from './ConfirmDRepRetirement';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmDRepRetirement> = {
title: 'ConfirmDRepRetirement',
title: 'Sanchonet/Certificates/ConfirmDRepRetirement',
component: ConfirmDRepRetirement,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmDRepUpdate } from './ConfirmDRepUpdate';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmDRepUpdate> = {
title: 'ConfirmDRepUpdate',
title: 'Sanchonet/Certificates/ConfirmDRepUpdate',
component: ConfirmDRepUpdate,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmStakeRegistrationDelegation } from './ConfirmStakeRegistrationDelegation';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmStakeRegistrationDelegation> = {
title: 'ConfirmStakeRegistrationDelegation',
title: 'Sanchonet/Certificates/ConfirmStakeRegistrationDelegation',
component: ConfirmStakeRegistrationDelegation,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmStakeVoteDelegation } from './ConfirmStakeVoteDelegation';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmStakeVoteDelegation> = {
title: 'ConfirmStakeVoteDelegation',
title: 'Sanchonet/Certificates/ConfirmStakeVoteDelegation',
component: ConfirmStakeVoteDelegation,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmStakeVoteRegistrationDelegation } from './ConfirmStakeVoteRegistrationDelegation';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmStakeVoteRegistrationDelegation> = {
title: 'ConfirmStakeVoteRegistrationDelegation',
title: 'Sanchonet/Certificates/ConfirmStakeVoteRegistrationDelegation',
component: ConfirmStakeVoteRegistrationDelegation,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmVoteDelegation } from './ConfirmVoteDelegation';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmVoteDelegation> = {
title: 'ConfirmVoteDelegation',
title: 'Sanchonet/Certificates/ConfirmVoteDelegation',
component: ConfirmVoteDelegation,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { ConfirmVoteRegistrationDelegation } from './ConfirmVoteRegistrationDelegation';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof ConfirmVoteRegistrationDelegation> = {
title: 'ConfirmVoteRegistrationDelegation',
title: 'Sanchonet/Certificates/ConfirmVoteRegistrationDelegation',
component: ConfirmVoteRegistrationDelegation,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof HardForkInitiationAction> = {
title: 'ProposalProcedure/HardForkInitiationAction',
title: 'Sanchonet/Proposal Procedures/HardForkInitiationAction',
component: HardForkInitiationAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof InfoAction> = {
title: 'ProposalProcedure/InfoAction',
title: 'Sanchonet/Proposal Procedures/InfoAction',
component: InfoAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof NewConstitutionAction> = {
title: 'ProposalProcedure/NewConstitutionAction',
title: 'Sanchonet/Proposal Procedures/NewConstitutionAction',
component: NewConstitutionAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof NoConfidenceAction> = {
title: 'ProposalProcedure/NoConfidenceAction',
title: 'Sanchonet/Proposal Procedures/NoConfidenceAction',
component: NoConfidenceAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof ParameterChangeAction> = {
title: 'ProposalProcedure/ParameterChangeAction',
title: 'Sanchonet/Proposal Procedures/ParameterChangeAction',
component: ParameterChangeAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof TreasuryWithdrawalsAction> = {
title: 'ProposalProcedure/TreasuryWithdrawalsAction',
title: 'Sanchonet/Proposal Procedures/TreasuryWithdrawalsAction',
component: TreasuryWithdrawalsAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customViewports = {
};

const meta: Meta<typeof UpdateCommitteeAction> = {
title: 'ProposalProcedure/UpdateCommitteeAction',
title: 'Sanchonet/Proposal Procedures/UpdateCommitteeAction',
component: UpdateCommitteeAction,
parameters: {
layout: 'centered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Card = ({ title, tooltip, data }: Props): JSX.Element => {
});

const renderRow = (props: Item) => (
<>
<React.Fragment key={props.label}>
<Cell>
<Flex>
{props.tooltip ? (
Expand Down Expand Up @@ -50,7 +50,7 @@ export const Card = ({ title, tooltip, data }: Props): JSX.Element => {
)}
</Flex>
</Cell>
</>
</React.Fragment>
);

const renderTitle = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@ import type { Meta, StoryObj } from '@storybook/react';
import { VotingProcedures } from './VotingProcedures';
import { ComponentProps } from 'react';

const customViewports = {
popup: {
name: 'Popup',
styles: {
width: '360px',
height: '600'
}
}
};

const meta: Meta<typeof VotingProcedures> = {
title: 'VotingProcedures',
title: 'Sanchonet/Voting/Procedures',
component: VotingProcedures,
parameters: {
layout: 'centered'
layout: 'centered',
viewport: {
viewports: customViewports,
defaultViewport: 'popup'
}
}
};

Expand Down Expand Up @@ -82,7 +96,7 @@ export const MultipleVotes: Story = {
{
voter: {
type: 'DRep',
dRepId: 'drep1cs234l5mtapethapx8cq97nkpa27xf84phruh5f6jqxa78ymlp4'
dRepId: 'drep1cs234l5mtapethapx8cq97nkpa27xf84phruh5f6jqxa78ymlp5'
},
votes: [
{
Expand Down