-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update "empty" status in StatusIcon to "sleep" with new icon (#12436)
* Update status icon empty state with new Moon icon Add StatusIcon storybook * Move PauseIcon to components/icons * Fix support for big status icon for inactive and empty * Rename status icon empty state to sleep
- Loading branch information
Showing
7 changed files
with
55 additions
and
15 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
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
16 changes: 16 additions & 0 deletions
16
airbyte-webapp/src/components/StatusIcon/index.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,16 @@ | ||
import { ComponentStory, ComponentMeta } from "@storybook/react"; | ||
|
||
import StatusIconComponent from "./StatusIcon"; | ||
|
||
export default { | ||
title: "Ui/StatusIcon", | ||
component: StatusIconComponent, | ||
argTypes: {}, | ||
} as ComponentMeta<typeof StatusIconComponent>; | ||
|
||
const Template: ComponentStory<typeof StatusIconComponent> = (args) => <StatusIconComponent {...args} />; | ||
|
||
export const StatusIcon = Template.bind({}); | ||
StatusIcon.args = { | ||
status: "success", | ||
}; |
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,15 @@ | ||
interface MoonProps { | ||
title?: string; | ||
} | ||
|
||
export const MoonIcon = ({ title }: MoonProps): JSX.Element => ( | ||
<svg viewBox="0 0 10 10" fill="none" role="img" data-icon="moon"> | ||
{title && <title>{title}</title>} | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M6.38 3.74396V4.31818H9.49719V3.48295H7.69996L9.50465 1.07422V0.5H6.38746V1.33523H8.18469L6.38 3.74396ZM2.75 3.49998C2.75 5.98526 4.76472 7.99998 7.25 7.99998C7.68548 7.99998 8.10652 7.93812 8.5048 7.82271C7.67992 8.84561 6.41638 9.49998 5 9.49998C2.51472 9.49998 0.5 7.48526 0.5 4.99998C0.5 2.95018 1.87052 1.22048 3.7452 0.677246C3.12269 1.44921 2.75 2.43107 2.75 3.49998Z" | ||
fill="white" | ||
/> | ||
</svg> | ||
); |
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