Skip to content
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

cses problem url support added #55

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
div with class cses added
  • Loading branch information
starkkumarkk1611 authored Oct 19, 2021
commit fdd311d4241f8d70e3ea12f5f61541983a3dd699
11 changes: 8 additions & 3 deletions src/component/QuestionsPane/ProblemPage/CodeForces.tsx
Original file line number Diff line number Diff line change
@@ -21,7 +21,6 @@ const LeetCode = ({ scrappedData }: { scrappedData: ScrappedDataType }) => {
{ left: "%%", right: "%%", display: true },
{ left: "\\(", right: "\\)", display: false },
{ left: "$", right: "$", display: true },

],
});
}
@@ -33,11 +32,17 @@ const LeetCode = ({ scrappedData }: { scrappedData: ScrappedDataType }) => {
<div className={"codeforces"} ref={MathRef}>
{parse(htmlString)}
</div>
) : (
) : ""}
{hostname === "atcoder.com" ? (
<div className={"atcoder"} ref={MathRef}>
{parse(htmlString)}
</div>
)}
) : ""}
{hostname === "cses.fi" ? (
<div className={"cses"} ref={MathRef}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, where does cses className come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if problem is of cses than div will have className="cses" as it is in "atcoder" and "codeforces"?
is that you are asking for?? i didn't get you are asking for

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, where does cses className come from?

You didn't select cses className, you should select that and add proper style for related element

{parse(htmlString)}
</div>
) : ""}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't separate the conditions, they are all related to each other, for better code looking change this to as it was and add new condition

<Divider />
</div>
);