Skip to content

Commit

Permalink
Web: Components: added storybook controls for main button mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sychugov committed Nov 18, 2021
1 parent 66dd9b1 commit 0503188
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import { useEffect, useReducer, useState } from "react";
export default {
title: "Components/MainButtonMobile",
component: MainButtonMobile,
parameters: {
docs: { description: { component: "Components/MainButtonMobile" } },
},
};

const Template = () => {
const Template = ({ ...args }) => {
const maxUploads = 10;
const maxOperations = 7;

Expand Down Expand Up @@ -148,7 +151,8 @@ const Template = () => {

return (
<MainButtonMobile
style={{ position: "absolute", top: "85%", left: "50%" }}
{...args}
style={{ position: "absolute", top: "87%", left: "87%" }}
actionOptions={actionOptions}
progressOptions={progressOptions}
buttonOptions={buttonOptions}
Expand All @@ -163,3 +167,8 @@ const Template = () => {
};

export const Default = Template.bind({});
Default.args = {
title: "Upload",
percent: 0,
opened: null,
};

0 comments on commit 0503188

Please sign in to comment.