Browse Source

rename embed page to docs

AykutSarac 2 years ago
parent
commit
35382609a4
3 changed files with 5 additions and 5 deletions
  1. 2 2
      src/containers/Home/index.tsx
  2. 1 1
      src/containers/Modals/ShareModal/index.tsx
  3. 2 2
      src/pages/docs.tsx

+ 2 - 2
src/containers/Home/index.tsx

@@ -36,7 +36,7 @@ const Navbar = () => (
     >
       GitHub
     </Styles.StyledNavLink>
-    <Link href="embed" passHref>
+    <Link href="docs" passHref>
       <Styles.StyledNavLink>Embed API</Styles.StyledNavLink>
     </Link>
   </Styles.StyledNavbar>
@@ -205,7 +205,7 @@ const EmbedSection = () => (
         intuitive interface makes it easy to navigate and understand even complex JSON data, making
         it a valuable tool for anyone working with JSON.
       </Styles.StyledMinorTitle>
-      <Styles.StyledButton href="https://jsoncrack.com/embed" status="SECONDARY" link>
+      <Styles.StyledButton href="https://jsoncrack.com/docs" status="SECONDARY" link>
         LEARN TO EMBED
       </Styles.StyledButton>
     </Styles.StyledSectionArea>

+ 1 - 1
src/containers/Modals/ShareModal/index.tsx

@@ -40,7 +40,7 @@ export const ShareModal: React.FC<ModalProps> = ({ visible, setVisible }) => {
   };
 
   const onEmbedClick = () => {
-    push("/embed");
+    push("/docs");
     setVisible(false);
   }
 

+ 2 - 2
src/pages/embed.tsx → src/pages/docs.tsx

@@ -52,7 +52,7 @@ const StyledHighlight = styled.span<{ link?: boolean; alert?: boolean }>`
   margin: ${({ alert }) => alert && "8px 0"};
 `;
 
-const Embed = () => {
+const Docs = () => {
   return (
     <StyledPage>
       <Head>
@@ -172,4 +172,4 @@ const Embed = () => {
   );
 };
 
-export default Embed;
+export default Docs;