From fdc32b24a90d05af7f73888843a5fc4b1f86ec03 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 19 Feb 2021 14:20:45 +1000 Subject: [PATCH] tutorial: update Star Icon --- pkg/interface/src/views/apps/launch/app.js | 3 ++- .../src/views/components/StarIcon.tsx | 27 +++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 pkg/interface/src/views/components/StarIcon.tsx diff --git a/pkg/interface/src/views/apps/launch/app.js b/pkg/interface/src/views/apps/launch/app.js index e94f7cf5c..339500f32 100644 --- a/pkg/interface/src/views/apps/launch/app.js +++ b/pkg/interface/src/views/apps/launch/app.js @@ -13,6 +13,7 @@ import Tile from './components/tiles/tile'; import Groups from './components/Groups'; import ModalButton from './components/ModalButton'; import { StatelessAsyncButton } from '~/views/components/StatelessAsyncButton'; +import { StarIcon } from '~/views/components/StarIcon'; import { writeText } from '~/logic/lib/util'; import { useModal } from "~/logic/lib/useModal"; import { NewGroup } from "~/views/landscape/components/NewGroup"; @@ -116,7 +117,7 @@ export default function LaunchApp(props) { return ( - + Welcome diff --git a/pkg/interface/src/views/components/StarIcon.tsx b/pkg/interface/src/views/components/StarIcon.tsx new file mode 100644 index 000000000..6bbd07bff --- /dev/null +++ b/pkg/interface/src/views/components/StarIcon.tsx @@ -0,0 +1,27 @@ +import React from "react"; +import css, { SystemStyleObject } from "@styled-system/css"; +import styled from "styled-components"; +import { BaseSVG } from "@tlon/indigo-react"; +import { PropFunc } from "~/types"; + +type StarIconProps = PropFunc & SvgProps; + +interface SvgProps { + color?: string; +} +const Svg = styled(BaseSVG)(({ color }: SvgProps) => + css({ + "& > *": { + fill: typeof color === "undefined" ? "inherit" : color || "black", + }, + flexShrink: 0, + } as SystemStyleObject) +); + +export function StarIcon(props: StarIconProps) { + return ( + + + + ); +}