Skip to content

Commit

Permalink
fix: icons export
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelkeyzik committed Dec 8, 2023
1 parent bc74d3e commit 07190bb
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 22 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
6 changes: 6 additions & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export { default as AlertIcon } from "./AlertIcon.svg";
export { default as ArrowDownIcon } from "./ArrowDownIcon.svg";
export { default as ArrowUpIcon } from "./ArrowUpIcon.svg";
export { default as CalendarIcon } from "./CalendarIcon.svg";
export { default as CaretLeftIcon } from "./CaretLeftIcon.svg";
export { default as CaretRightIcon } from "./CaretRightIcon.svg";
export { default as CaretUpDownIcon } from "./CaretUpDownIcon.svg";
export { default as CheckIcon } from "./CheckIcon.svg";
export { default as MoreVerticalIcon } from "./MoreVerticalIcon.svg";
export { default as PlusIcon } from "./PlusIcon.svg";
export { default as VerticalDragAndDropIcon } from "./VerticalDragAndDropIcon.svg";
export { default as XIcon } from "./XIcon.svg";
16 changes: 8 additions & 8 deletions src/stories/components/Card.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta } from "@storybook/blocks";
import { UnstyledWithTheme } from "../../components/UnstyledWithTheme";
import MoreVertical from '../../icons/MoreVertical.svg'
import MoreVerticalIcon from '../../icons/MoreVerticalIcon.svg'

<Meta title="Components/Card" />

Expand All @@ -20,7 +20,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-secondary">Food</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="card">
Expand All @@ -30,7 +30,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-secondary">A cheapest flight between Monaco - Norway - Turkey - New York for a week</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<div className="card-section">
Expand All @@ -42,7 +42,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-primary">48 USD</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
</ul>
Expand All @@ -58,7 +58,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-primary">Food</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="card">
Expand All @@ -67,7 +67,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-primary">Travel</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="card">
Expand All @@ -76,7 +76,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-primary">Tennis</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="card">
Expand All @@ -85,7 +85,7 @@ import MoreVertical from '../../icons/MoreVertical.svg'
<p className="card-information-primary">Government</p>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
</ul>
Expand Down
8 changes: 4 additions & 4 deletions src/stories/components/MonthlyReport.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Meta } from "@storybook/blocks";
import { UnstyledWithTheme } from "../../components/UnstyledWithTheme";
import ArrowUp from '../../icons/ArrowUp.svg';
import ArrowDown from '../../icons/ArrowDown.svg';
import ArrowUpIcon from '../../icons/ArrowUpIcon.svg';
import ArrowDownIcon from '../../icons/ArrowDownIcon.svg';

<Meta title="Components/MonthlyReport" />

Expand Down Expand Up @@ -90,7 +90,7 @@ The component is used to show monthly report for expenses by categories, as well
</div>
<button type="button" className="button button-secondary">
<span>Less Details</span>
<ArrowUp />
<ArrowUpIcon />
</button>
</div>
</div>
Expand All @@ -116,7 +116,7 @@ The component is used to show monthly report for expenses by categories, as well
<div className="monthly-report-expanded-container">
<button type="button" className="button button-secondary">
<span>More Details</span>
<ArrowDown />
<ArrowDownIcon />
</button>
</div>
</div>
Expand Down
20 changes: 10 additions & 10 deletions src/stories/components/Widget.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Meta } from "@storybook/blocks";
import { UnstyledWithTheme } from "../../components/UnstyledWithTheme";
import PlusIcon from '../../icons/PlusIcon.svg'
import AlertIcon from '../../icons/AlertIcon.svg';
import MoreVertical from '../../icons/MoreVertical.svg';
import MoreVerticalIcon from '../../icons/MoreVerticalIcon.svg';
import CheckIcon from '../../icons/CheckIcon.svg';
import ArrowDown from '../../icons/ArrowDown.svg';
import ArrowUp from '../../icons/ArrowUp.svg';
import ArrowDownIcon from '../../icons/ArrowDownIcon.svg';
import ArrowUpIcon from '../../icons/ArrowUpIcon.svg';

<Meta title="Components/Widget" />

Expand Down Expand Up @@ -43,7 +43,7 @@ Shows a list of limits by each category, as well as progress and additional info
</div>
</div>
<button type="button" className="icon-button">
<ArrowUp />
<ArrowUpIcon />
</button>
</div>
<div className="budget-additional-list-container">
Expand Down Expand Up @@ -75,7 +75,7 @@ Shows a list of limits by each category, as well as progress and additional info
</div>
</div>
<button type="button" className="icon-button">
<ArrowDown />
<ArrowDownIcon />
</button>
</li>
<li className="budget">
Expand All @@ -95,7 +95,7 @@ Shows a list of limits by each category, as well as progress and additional info
</div>
</div>
<button type="button" className="icon-button">
<ArrowDown />
<ArrowDownIcon />
</button>
</li>
</ul>
Expand Down Expand Up @@ -127,7 +127,7 @@ Shows a list of user's subscriptions
<div className="subscription-information-amount">120 USD</div>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="subscription">
Expand All @@ -140,7 +140,7 @@ Shows a list of user's subscriptions
<div className="subscription-information-amount">120 USD</div>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
</div>
Expand Down Expand Up @@ -226,7 +226,7 @@ Use the aler message to notify users that they need more money based on their ex
<div className="subscription-information-amount">120 USD</div>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
<li className="subscription">
Expand All @@ -239,7 +239,7 @@ Use the aler message to notify users that they need more money based on their ex
<div className="subscription-information-amount">120 USD</div>
</div>
<button type="button" className="icon-button">
<MoreVertical />
<MoreVerticalIcon />
</button>
</li>
</div>
Expand Down

0 comments on commit 07190bb

Please sign in to comment.