-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 2: Improve provider list (#147)
* Improve providers list accessibility * Add loading skeleton * Add loading to app --------- Co-authored-by: alex-slobodian <[email protected]>
- Loading branch information
1 parent
c970d5a
commit 581503d
Showing
8 changed files
with
97 additions
and
26 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
38 changes: 38 additions & 0 deletions
38
src/components/certificates-providers-list/CertificatesProvidersList.stories.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,38 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
import { fn } from "@storybook/test"; | ||
import { CertificatesProvidersList } from "./CertificatesProvidersList"; | ||
|
||
const meta: Meta<typeof CertificatesProvidersList> = { | ||
title: "Components/CertificatesProvidersList", | ||
component: CertificatesProvidersList, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof CertificatesProvidersList>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
currentProviderId: "1", | ||
providers: [ | ||
{ | ||
id: "1", | ||
name: "Provider 1", | ||
isRemovable: false, | ||
readOnly: true, | ||
}, | ||
{ | ||
id: "2", | ||
name: "Provider 2", | ||
isRemovable: false, | ||
readOnly: true, | ||
}, | ||
{ | ||
id: "3", | ||
name: "Smartcard", | ||
isRemovable: true, | ||
readOnly: true, | ||
}, | ||
], | ||
onSelect: fn(), | ||
}, | ||
}; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.