Skip to content

Commit

Permalink
rename: export name modify
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunjae95 committed Oct 19, 2024
1 parent 8877579 commit a80af39
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Certificate/certificate.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import React from "react";
import Certificate from "./certificate";
import { MemoryRouter, Route, Routes } from "react-router-dom";

export default {};

const username = "testUser";
const pathname = `/members/${username}/certificate`;

Expand All @@ -16,3 +14,5 @@ const Template = () => (
);

export const Default = Template.bind({});

export default {};
6 changes: 4 additions & 2 deletions src/components/Certificate/certificate.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useLocation, useParams } from "react-router-dom";
import { css } from "../../../styled-system/css";

export default function Certificate() {
const Certificate = () => {
const { username } = useParams();
const { pathname } = useLocation();

Expand All @@ -28,8 +28,10 @@ export default function Certificate() {
</main>
</div>
);
}
};

const invisiblePrint = css({
"@media print": { display: "none" },
});

export default Certificate;
3 changes: 3 additions & 0 deletions src/components/Certificate/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Certificate from "./certificate";

export default Certificate;
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Certificate from "./components/Certificate/certificate";
import Certificate from "./components/Certificate";
import ErrorPage from "./error-page";
import "./index.css";
import Leaderboard from "./leaderboard";
Expand Down

0 comments on commit a80af39

Please sign in to comment.