Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
quietbits committed Aug 2, 2023
1 parent 7445861 commit feaa2a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
13 changes: 4 additions & 9 deletions @stellar/design-system-website/src/components/Element.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import React, { Fragment, createElement } from "react";
import Link from "@docusaurus/Link";
// import rehypeParse from "rehype-parse";
// import rehypeReact from "rehype-react";
// import rehypeSanitize from "rehype-sanitize";
// import { unified } from "unified";

const rehypeParse = require("rehype-parse");
const rehypeReact = require("rehype-react");
const rehypeSanitize = require("rehype-sanitize");
const { unified } = require("unified");
import rehypeParse from "rehype-parse";
import rehypeReact from "rehype-react";
import rehypeSanitize from "rehype-sanitize";
import { unified } from "unified";

export type ElementKind = "text" | "code" | "inline-tag";

Expand Down
6 changes: 3 additions & 3 deletions @stellar/design-system/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import React from "react";
import { Loader } from "../Loader";
import "./styles.scss";

/**
* Including all valid [button attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attributes)
*/
export interface ButtonProps {
/** Variant of the button */
variant:
Expand Down Expand Up @@ -30,9 +33,6 @@ export interface ButtonProps {
/** Button with extra padding */
isExtraPadding?: boolean;
}
/**
* Including all valid [button attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attributes)
*/

interface Props
extends ButtonProps,
Expand Down
6 changes: 3 additions & 3 deletions @stellar/design-system/src/components/Link/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from "react";
import "./styles.scss";

/**
* Including all valid [anchor element attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes)
*/
export interface LinkProps {
/** Content of the link */
children?: string | React.ReactNode;
Expand All @@ -19,9 +22,6 @@ export interface LinkProps {
/** Make the link uppercase */
isUppercase?: boolean;
}
/**
* Including all valid [anchor element attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attributes)
*/

interface Props
extends LinkProps,
Expand Down

0 comments on commit feaa2a9

Please sign in to comment.