-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(frontend): Better
CopyToClipboardInline
typing (#18723)
* Type `CopyToClipboardInline` narrowly instead of throwing error * Fix issues at `CopyToClipboardInline` call sites * Add `PropertiesTable ` story along with snapshots * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (1) * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4557575
commit e2df3a1
Showing
8 changed files
with
54 additions
and
23 deletions.
There are no files selected for viewing
Binary file added
BIN
+25.4 KB
frontend/__snapshots__/components-properties-table--properties-table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
25 changes: 25 additions & 0 deletions
25
frontend/src/lib/components/PropertiesTable/PropertiesTable.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,25 @@ | ||
import { Meta, StoryFn } from '@storybook/react' | ||
import { PropertiesTable as PropertiesTableComponent } from '.' | ||
import { PropertyDefinitionType } from '~/types' | ||
|
||
const meta: Meta<typeof PropertiesTableComponent> = { | ||
title: 'Components/Properties Table', | ||
component: PropertiesTableComponent, | ||
} | ||
export default meta | ||
|
||
export const PropertiesTable: StoryFn = () => { | ||
const properties = { | ||
name: 'John Doe', | ||
age: 30, | ||
url: 'https://www.google.com', | ||
is_good: true, | ||
evil_level: null, | ||
tags: ['best', 'cool', 'awesome'], | ||
location: { | ||
city: 'Prague', | ||
country: 'Czechia', | ||
}, | ||
} | ||
return <PropertiesTableComponent type={PropertyDefinitionType.Event} properties={properties} /> | ||
} |
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
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