-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Funding Request Proposal for Multiple Recipients (#4453)
* preview multiple receipients modal * multiple funding request validation * csv reg exp pattern * Preview And Validate Modal validation * lint fix * Tx fail fix * suggestions * lint fix * side drawer * csv pattern change and cleanup * Multiple funding request test * lint * Update packages/ui/src/app/pages/Proposals/CurrentProposals.stories.tsx Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com> * requested changes * lint * disable preview button * updated storybook test for multiple funding request * requested changes * requested changes --------- Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
- Loading branch information
Showing
12 changed files
with
546 additions
and
29 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
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
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
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 @@ | ||
export const CSV_PATTERN = /^([^,:;]+),([^,:;]+)(\n[^,:;]+,[^,:;]+)*(\n)?$/ |
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
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
57 changes: 57 additions & 0 deletions
57
packages/ui/src/proposals/modals/AddNewProposal/components/SpecificParameters/Prompt.tsx
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,57 @@ | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
import { QuestionIcon } from '@/common/components/icons' | ||
import { BorderRad, Colors } from '@/common/constants' | ||
|
||
export interface PromptProps { | ||
children: React.ReactNode | ||
} | ||
|
||
export const Prompt = ({ children }: PromptProps) => { | ||
return ( | ||
<PromptContainer> | ||
<IconSection> | ||
<PromptQuestion> | ||
<QuestionIcon /> | ||
</PromptQuestion> | ||
</IconSection> | ||
{children} | ||
</PromptContainer> | ||
) | ||
} | ||
const PromptContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: 48px 1fr; | ||
border-left: 4px solid ${Colors.Blue[200]}; | ||
color: ${Colors.Black[500]}; | ||
` | ||
const IconSection = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
align-items: center; | ||
` | ||
const PromptQuestion = styled.div` | ||
display: flex; | ||
position: relative; | ||
justify-content: center; | ||
align-items: center; | ||
width: 16px; | ||
height: 16px; | ||
border-radius: ${BorderRad.full}; | ||
border: 1px solid ${Colors.Black[900]}; | ||
` | ||
export const ErrorPrompt = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
border-left: 4px solid ${Colors.Red[200]}; | ||
padding-left: 10.78px; | ||
background-color: ${Colors.Red[50]}; | ||
color: ${Colors.Red[400]}; | ||
width: 504px; | ||
height: 56px; | ||
border-radius: 2px; | ||
font-weight: 400; | ||
` |
Oops, something went wrong.
83b4ef3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2-storybook – ./
pioneer-2-storybook.vercel.app
pioneer-2-storybook-git-dev-joystream.vercel.app
pioneer-2-storybook-joystream.vercel.app
83b4ef3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
pioneer-2 – ./
pioneer-2-git-dev-joystream.vercel.app
pioneer-2-joystream.vercel.app
pioneer-2.vercel.app