Skip to content

Commit

Permalink
fix: remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Apr 12, 2024
1 parent 1060247 commit 28af786
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/Dividers/Divider.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {Meta, Story, Canvas, ArgsTable} from '@storybook/addon-docs';
import {action} from '@storybook/addon-actions';
import {Divider} from './Divider';

<Meta
Expand Down
36 changes: 19 additions & 17 deletions src/Labels/BaseLabel.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
import React from 'react';
import {BaseLabel} from './BaseLabel';
import React from "react";
import { BaseLabel } from "./BaseLabel";
import {
LightThemeDecorator,
DarkThemeDecorator,
} from '../../.storybook/StoryDecorator';
import {Typography} from '../Typography';
import {action} from '@storybook/addon-actions';
import {View} from 'react-native';
import {useColors} from '../Themes';
} from "../../.storybook/StoryDecorator";
import { Typography } from "../Typography";
import { action } from "@storybook/addon-actions";
import { View } from "react-native";
import { useColors } from "../Themes";

const Story = () => {
const {primaryColor, white} = useColors();
const { primaryColor, white } = useColors();
return (
<View style={{flexDirection: 'row', flexWrap: 'wrap'}}>
<BaseLabel style={{margin: 8}}>
<View style={{ flexDirection: "row", flexWrap: "wrap" }}>
<BaseLabel style={{ margin: 8 }}>
<Typography>Label</Typography>
</BaseLabel>
<BaseLabel color={primaryColor} style={{margin: 8}}>
<BaseLabel color={primaryColor} style={{ margin: 8 }}>
<Typography color={white}>Primary</Typography>
</BaseLabel>
<BaseLabel
style={{margin: 8}}
leadingComponent={<Typography>{'\u2714'}</Typography>}>
style={{ margin: 8 }}
leadingComponent={<Typography>{"\u2714"}</Typography>}
>
<Typography>With Leading Component</Typography>
</BaseLabel>
<BaseLabel
style={{margin: 8}}
tailingComponent={<Typography>{'\u2714'}</Typography>}>
style={{ margin: 8 }}
tailingComponent={<Typography>{"\u2714"}</Typography>}
>
<Typography>With Tailing Component</Typography>
</BaseLabel>
<BaseLabel style={{margin: 8}} onAction={action('onAction')}>
<BaseLabel style={{ margin: 8 }} onAction={action("onAction")}>
<Typography>With ActionButton</Typography>
</BaseLabel>
</View>
Expand All @@ -49,5 +51,5 @@ dark.story = {
};

export default {
title: 'Labels/BaseLabel',
title: "Labels/BaseLabel",
};

0 comments on commit 28af786

Please sign in to comment.