Skip to content

Commit

Permalink
fix: Build and add build step to workflow (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge committed Nov 6, 2020
1 parent f68ffa0 commit 6f3fefc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2.1.0
with:
node-version: 14.x

- name: Install dependencies
run: yarn install

- name: Run Build
run: yarn build
3 changes: 2 additions & 1 deletion src/components/Svg/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ import { space } from "styled-system";
import getThemeValue from "../../util/getThemeValue";
import SvgProps from "./types";

const Svg = styled.svg.attrs({ xmlns: "http://www.w3.org/2000/svg" })<SvgProps>`
const Svg = styled.svg<SvgProps>`
fill: ${({ theme, color }) => getThemeValue(`colors.${color}`, color)(theme)};
${space}
`;

Svg.defaultProps = {
color: "text",
width: "20px",
xmlns: "http://www.w3.org/2000/svg",
};

export default Svg;
2 changes: 1 addition & 1 deletion src/widgets/Nav/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type NavTheme = {

export interface ConnectCallbackType {
key: "metamask" | "trustwallet" | "mathwallet" | "tokenpocket" | "walletconnect";
callback: () => void;
callback: () => null;
}

export interface NavProps {
Expand Down

0 comments on commit 6f3fefc

Please sign in to comment.