Skip to content

Commit

Permalink
chore: rename partials to components (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicmatatjahu authored Dec 18, 2020
1 parent 94ca87d commit ad696ad
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion partials/Channels.js → components/Channels.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text } from "@asyncapi/generator-react-sdk";

import { Header } from "../partials/common";
import { Header } from "./common";
import { Message } from "./Message";
import { Schema } from "./Schema";

Expand Down
2 changes: 1 addition & 1 deletion partials/Info.js → components/Info.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text } from "@asyncapi/generator-react-sdk";

import { Header, Link, Image } from "../partials/common";
import { Header, Link, Image } from "./common";

export function Info({ asyncapi }) {
const info = asyncapi.info();
Expand Down
2 changes: 1 addition & 1 deletion partials/Message.js → components/Message.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Text } from "@asyncapi/generator-react-sdk";
import { generateExample, getHeadersExamples, getPayloadExamples } from "@asyncapi/generator-filters";

import { Header, ListItem, CodeBlock } from "../partials/common";
import { Header, ListItem, CodeBlock } from "./common";
import { Schema } from "./Schema";

export function Message({ message, title = 'Message' }) {
Expand Down
2 changes: 1 addition & 1 deletion partials/Schema.js → components/Schema.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text } from "@asyncapi/generator-react-sdk";

import { Header, TableHead, TableRow } from "../partials/common";
import { Header, TableHead, TableRow } from "./common";

export function Schema({ schema, schemaName, description = '', hideTitle = false }) {
const headers = ['Name', 'Type', 'Description', 'Accepted values'];
Expand Down
2 changes: 1 addition & 1 deletion partials/Servers.js → components/Servers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Text } from "@asyncapi/generator-react-sdk";

import { Header, Table } from "../partials/common";
import { Header, Table } from "./common";

export function Servers({ asyncapi }) {
if (!asyncapi.hasServers()) {
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions template/asyncapi.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { File, Text } from "@asyncapi/generator-react-sdk";

import { Header, Link, ListItem } from "../partials/common";
import { Info, TermsOfService } from "../partials/Info";
import { Servers } from "../partials/Servers";
import { Channels } from "../partials/Channels";
import { Header, Link, ListItem } from "../components/common";
import { Info, TermsOfService } from "../components/Info";
import { Servers } from "../components/Servers";
import { Channels } from "../components/Channels";

export default function({ asyncapi, params }) {
return (
Expand Down

0 comments on commit ad696ad

Please sign in to comment.