ui/toolbar: fix story types
This commit is contained in:
@@ -29,8 +29,9 @@ export const Default: Story = {
|
||||
};
|
||||
|
||||
export const WithTooltip: Story = {
|
||||
// @ts-expect-error: args in storybook is not typed correctly. This is a storybook issue.
|
||||
render: (args) => (
|
||||
<div class="h-[80vh] flex">
|
||||
<div class="flex h-[80vh]">
|
||||
<div class="mt-auto">
|
||||
<Toolbar {...args} />
|
||||
</div>
|
||||
@@ -43,7 +44,7 @@ export const WithTooltip: Story = {
|
||||
trigger={<ToolbarButton name="select" icon="Cursor" />}
|
||||
placement="top"
|
||||
>
|
||||
<div class="p-1 mb-1 text-fg-inv-1">
|
||||
<div class="mb-1 p-1 text-fg-inv-1">
|
||||
<Typography hierarchy="label" size="s" color="inherit">
|
||||
Select an object
|
||||
</Typography>
|
||||
@@ -54,7 +55,7 @@ export const WithTooltip: Story = {
|
||||
trigger={<ToolbarButton name="new-machine" icon="NewMachine" />}
|
||||
placement="top"
|
||||
>
|
||||
<div class="p-1 mb-1 text-fg-inv-1">
|
||||
<div class="mb-1 p-1 text-fg-inv-1">
|
||||
<Typography hierarchy="label" size="s" color="inherit">
|
||||
Create a new machine
|
||||
</Typography>
|
||||
@@ -66,7 +67,7 @@ export const WithTooltip: Story = {
|
||||
}
|
||||
placement="top"
|
||||
>
|
||||
<div class="p-1 mb-1 text-fg-inv-1">
|
||||
<div class="mb-1 p-1 text-fg-inv-1">
|
||||
<Typography hierarchy="label" size="s" color="inherit">
|
||||
Manage Services
|
||||
</Typography>
|
||||
@@ -76,7 +77,7 @@ export const WithTooltip: Story = {
|
||||
trigger={<ToolbarButton name="ai" icon="AI" />}
|
||||
placement="top"
|
||||
>
|
||||
<div class="p-1 mb-1 text-fg-inv-1">
|
||||
<div class="mb-1 p-1 text-fg-inv-1">
|
||||
<Typography hierarchy="label" size="s" color="inherit">
|
||||
Chat with AI
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user