Display correct link in DialogUpdate

This commit is contained in:
Fedor Indutny 2021-11-11 23:46:16 +01:00 committed by GitHub
parent 5619eeca83
commit 910516f896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 2 deletions

View file

@ -49,6 +49,7 @@ story.add('Knobs Playground', () => {
dialogType={dialogType}
didSnooze={didSnooze}
hasNetworkDialog={hasNetworkDialog}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
);
@ -70,6 +71,7 @@ story.add('Knobs Playground', () => {
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
));
@ -79,6 +81,7 @@ story.add('Knobs Playground', () => {
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.DownloadReady}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
));
@ -88,6 +91,7 @@ story.add('Knobs Playground', () => {
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.Downloading}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
));
@ -97,6 +101,17 @@ story.add('Knobs Playground', () => {
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.Cannot_Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
));
story.add(`Cannot Update Beta (${name} container)`, () => (
<FakeLeftPaneContainer containerWidthBreakpoint={containerWidthBreakpoint}>
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.Cannot_Update}
currentVersion="5.24.0-beta.1"
/>
</FakeLeftPaneContainer>
));
@ -106,6 +121,7 @@ story.add('Knobs Playground', () => {
<DialogUpdate
{...defaultPropsForBreakpoint}
dialogType={DialogType.MacOS_Read_Only}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
));