1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Thomas Huang 646dbaaff2
Continue converting tests from enzyme to @testing-library/react (#16373)
* Add transaction activity log component

* Remove duplicate tx activity log snapshot.

* Convert Identicon test to tlr.

* Convert Metafoxlogo test to tlr.

* Convert Reveal Seed Phrase test to tlr.

* Consolidate and convert Send Footer test to tlr.

* Convert Settings test to tlr.

* Consolidate and convert security tab test to tlr.

* Convert null selectedOption to empty string, and add test id to Dropdown component.

* Add Send state to mock-state

* Lint mock-state.json
2022-11-04 13:56:24 -07:00
..

import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';

import Identicon from './identicon.component';

# Identicon

An identifier component that can be supplied an image or randomly generates one based on the account address.

<Canvas>
  <Story id="ui-components-ui-identicon-identicon-stories-js--default-story" />
</Canvas>

## Props

<ArgsTable of={Identicon} />

## Usage

### With Image

Use with custom image

<Canvas>
  <Story id="ui-components-ui-identicon-identicon-stories-js--with-image" />
</Canvas>

### With Blockie

<Canvas>
  <Story id="ui-components-ui-identicon-identicon-stories-js--with-blockie" />
</Canvas>

### With Border

<Canvas>
  <Story id="ui-components-ui-identicon-identicon-stories-js--with-border" />
</Canvas>