Skip to content

chore: copying correct props folder and build succesfully. #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions injectLatestProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ try {

// Point 4
cpDir.sync(
"./react-native-elements/website/docs/main",
"./react-native-elements/website/docs/main/props",
"./src/content/Props"
);
console.log("✔️ Copied Props to src/content/Props");
} catch (err) {
console.error(err);
return;
}
}
2 changes: 1 addition & 1 deletion src/content/AirbnbRating/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./airbnbrating.playground.jsx";

const Content = lazy(() => importMDX("../Props/rating.md"));
const Content = lazy(() => importMDX("../Props/AirbnbRating.mdx"));

export default function AirbnbPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Avatar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./avatar.playground.jsx";

const Content = lazy(() => importMDX("../Props/avatar.md"));
const Content = lazy(() => importMDX("../Props/Avatar.mdx"));

export default function Avatar() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Badge/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./badge.playground.jsx";

const Content = lazy(() => importMDX("../Props/badge.md"));
const Content = lazy(() => importMDX("../Props/Badge.mdx"));

export default function TilePlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/BottomSheet/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./bottomsheet.playground.jsx";

const Content = lazy(() => importMDX("../Props/bottomsheet.md"));
const Content = lazy(() => importMDX("../Props/BottomSheet.mdx"));
export default function BottomSheetPlayground() {
return (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/content/Button/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./button.playground.jsx";

const Content = lazy(() => importMDX("../Props/button.md"));
const Content = lazy(() => importMDX("../Props/Button.mdx"));

class App extends Component {
render() {
Expand Down
2 changes: 1 addition & 1 deletion src/content/ButtonGroup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./buttongroup.playground.jsx";

const Content = lazy(() => importMDX("../Props/button_group.md"));
const Content = lazy(() => importMDX("../Props/ButtonGroup.mdx"));

export default function ButtonGroupPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Card/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./card.playground.jsx";

const Content = lazy(() => importMDX("../Props/card.md"));
const Content = lazy(() => importMDX("../Props/Card.mdx"));

export default function CardPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/CheckBox/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./checkbox.playground.jsx";

const Content = lazy(() => importMDX("../Props/checkbox.md"));
const Content = lazy(() => importMDX("../Props/CheckBox.mdx"));

export default function CheckBoxPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Divider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./divider.playground.jsx";

const Content = lazy(() => importMDX("../Props/divider.md"));
const Content = lazy(() => importMDX("../Props/Divider.mdx"));

export default function DividerPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/FAB/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";
import Playground from "./fab.playground";

const Content = lazy(() => importMDX("../Props/fab.md"));
const Content = lazy(() => importMDX("../Props/FAB.mdx"));

export default function FabPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./header.playground.jsx";

const Content = lazy(() => importMDX("../Props/header.md"));
const Content = lazy(() => importMDX("../Props/Header.mdx"));

export default function HeaderPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Icon/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./icon.playground.jsx";

const Content = lazy(() => importMDX("../Props/icon.md"));
const Content = lazy(() => importMDX("../Props/Icon.mdx"));

export default function IconPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Image/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./input.playground.jsx";

const Content = lazy(() => importMDX("../Props/image.md"));
const Content = lazy(() => importMDX("../Props/Image.mdx"));

export default function ImagePlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Input/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./input.playground.jsx";
const Content = lazy(() => importMDX("../Props/input.md"));
const Content = lazy(() => importMDX("../Props/Input.mdx"));

export default function InputPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/LinearProgress/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro";

import PropDrawer from "../../components/PropDrawer";
import Playground from "./linearprogress.playground";
const Content = lazy(() => importMDX("../Props/linearProgress.md"));
const Content = lazy(() => importMDX("../Props/LinearProgress.mdx"));

export default function LinearProgressPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/ListItem/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Playground from "./listitem.playground.jsx";
import Spinner from "../../containers/Spinner";

const Content = lazy(() => importMDX("../Props/listitem.md"));
const Content = lazy(() => importMDX("../Props/ListItem.mdx"));

export default function ListItemPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Overlay/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./overlay.playground.jsx";

const Content = lazy(() => importMDX("../Props/overlay.md"));
const Content = lazy(() => importMDX("../Props/Overlay.mdx"));

export default function OverlayPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Pricing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./pricing.playground.jsx";

const Content = lazy(() => importMDX("../Props/pricing.md"));
const Content = lazy(() => importMDX("../Props/PricingCard.mdx"));

export default function PricingPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Rating/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Playground from "./rating.playground.jsx";
import Spinner from "../../containers/Spinner";

const Content = lazy(() => importMDX("../Props/rating.md"));
const Content = lazy(() => importMDX("../Props/Rating.mdx"));

export default function RatingPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/SearchBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./searchbar.playground.jsx";

const Content = lazy(() => importMDX("../Props/searchbar.md"));
const Content = lazy(() => importMDX("../Props/SearchBar.mdx"));

export default function SearchBarPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Slider/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./slider.playground.jsx";

const Content = lazy(() => importMDX("../Props/slider.md"));
const Content = lazy(() => importMDX("../Props/Slider.mdx"));

export default function SliderPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/SocialIcon/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./socialicon.playground.jsx";
const Content = lazy(() => importMDX("../Props/social_icons.md"));
const Content = lazy(() => importMDX("../Props/SocialIcon.mdx"));

export default function SocialIconPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/SpeedDial/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { importMDX } from "mdx.macro";
import PropDrawer from "../../components/PropDrawer";
import Playground from "./speeddial.playground";

const Content = lazy(() => importMDX("../Props/speeddial.md"));
const Content = lazy(() => importMDX("../Props/SpeedDial.mdx"));

export default function SpeedDialPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Switch/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro";

import PropDrawer from "../../components/PropDrawer";
import Playground from "./switch.playground.jsx";
const Content = lazy(() => importMDX("../Props/switch.md"));
const Content = lazy(() => importMDX("../Props/Switch.mdx"));

export default function SwitchPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Tab/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { importMDX } from "mdx.macro";

import PropDrawer from "../../components/PropDrawer";
import Playground from "./tab.playground.jsx";
const Content = lazy(() => importMDX("../Props/tab.md"));
const Content = lazy(() => importMDX("../Props/Tab.mdx"));

export default function TabPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Text/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./text.playground.jsx";

const Content = lazy(() => importMDX("../Props/text.md"));
const Content = lazy(() => importMDX("../Props/Text.mdx"));

export default function TextPlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/Tile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./tile.playground.jsx";

const Content = lazy(() => importMDX("../Props/tile.md"));
const Content = lazy(() => importMDX("../Props/Tile.mdx"));

export default function TilePlayground() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/content/ToolTip/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PropDrawer from "../../components/PropDrawer";
import Spinner from "../../containers/Spinner";
import Playground from "./tooltip.playground.jsx";

const Content = lazy(() => importMDX("../Props/tooltip.md"));
const Content = lazy(() => importMDX("../Props/Tooltip.mdx"));

export default function ToolTipPlayground() {
return (
Expand Down