From 89c0089245e7b29b21d9512423aed7fd735fcbe0 Mon Sep 17 00:00:00 2001 From: Samet Date: Mon, 24 Apr 2023 16:44:11 +0300 Subject: [PATCH] feat: made some minor styling changes --- lib/@dsvgui/components/line/index.stories.tsx | 8 ++++---- lib/@dsvgui/components/progress/index.stories.tsx | 4 ++-- platforms/github/view/index.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/@dsvgui/components/line/index.stories.tsx b/lib/@dsvgui/components/line/index.stories.tsx index 446a34d..7e378e8 100644 --- a/lib/@dsvgui/components/line/index.stories.tsx +++ b/lib/@dsvgui/components/line/index.stories.tsx @@ -24,7 +24,7 @@ const randomPoints = (length: number) => { return points; }; -export const Base: Story = { +export const Minimal: Story = { args: { items: [ { @@ -36,7 +36,7 @@ export const Base: Story = { }, }; -export const ColoredLines: Story = { +export const Colored: Story = { args: { items: [ { @@ -49,7 +49,7 @@ export const ColoredLines: Story = { }, }; -export const SecondaryTitle: Story = { +export const WithSecondaryTitle: Story = { args: { items: [ { @@ -64,7 +64,7 @@ export const SecondaryTitle: Story = { }, }; -export const PeriodLabels: Story = { +export const WithPeriodLabels: Story = { args: { items: [ { diff --git a/lib/@dsvgui/components/progress/index.stories.tsx b/lib/@dsvgui/components/progress/index.stories.tsx index 8c0d382..35125c8 100644 --- a/lib/@dsvgui/components/progress/index.stories.tsx +++ b/lib/@dsvgui/components/progress/index.stories.tsx @@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react"; import { Progress } from "./index"; import { AiOutlineCalendar } from "react-icons/ai"; -import { RxPieChart } from "react-icons/rx"; +import { HiChartBar } from "react-icons/hi"; import { VscIssues, VscGitPullRequest } from "react-icons/vsc"; const meta: Meta = { @@ -18,7 +18,7 @@ export const Base: Story = { title: "Progress", percent: 55, metrics: [ - { icon: RxPieChart, text: "%51 completed" }, + { icon: HiChartBar, text: "%51 completed" }, { icon: AiOutlineCalendar, text: "Due by April 17, 2023" }, { icon: VscIssues, text: "7/19 issues solved" }, { icon: VscGitPullRequest, text: "8/10 PRs closed" }, diff --git a/platforms/github/view/index.tsx b/platforms/github/view/index.tsx index cebce6e..d63ea1e 100644 --- a/platforms/github/view/index.tsx +++ b/platforms/github/view/index.tsx @@ -10,7 +10,7 @@ import getImageSize from "image-size"; import qs from "qs"; import { AiFillGithub, AiOutlineCalendar } from "react-icons/ai"; -import { RxPieChart } from "react-icons/rx"; +import { HiChartBar } from "react-icons/hi"; import { VscIssues, VscGitPullRequest } from "react-icons/vsc"; import { SiGithubsponsors } from "react-icons/si"; @@ -53,7 +53,7 @@ export const getRepositoryMilestone: ViewComponent = (result, config) => { "No due date"; const metrics: IProgress["metrics"] = [ - { icon: RxPieChart, text: `%${percentInText} completed` }, + { icon: HiChartBar, text: `%${percentInText} completed` }, { icon: AiOutlineCalendar, text: dueDate }, { icon: VscIssues, @@ -98,7 +98,7 @@ export const getPublicRepositoryMilestone: ViewComponent = (result, config) => { "No due date"; const metrics: IProgress["metrics"] = [ - { icon: RxPieChart, text: `%${percentInText} completed` }, + { icon: HiChartBar, text: `%${percentInText} completed` }, { icon: AiOutlineCalendar, text: dueDate }, { icon: VscIssues, @@ -124,7 +124,7 @@ export const getUserActiveSponsorGoal: ViewComponent = (result, config) => { const metrics: IProgress["metrics"] = [ { - icon: RxPieChart, + icon: HiChartBar, text: `%${user.sponsorsListing.activeGoal.percentComplete} reached`, }, {