Skip to content

Commit

Permalink
Merge pull request #1712 from kleros/chore/remove-court-disputetempla…
Browse files Browse the repository at this point in the history
…teview

Removal of unused court DisputeTemplateView, already replaced by the Dev Tools
  • Loading branch information
jaybuidl authored Oct 15, 2024
2 parents bf3c630 + 75de07d commit f07ae54
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 647 deletions.
4 changes: 2 additions & 2 deletions web-devtools/scripts/runEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ ! " ${valid_deployments[*]} " =~ ${deployment} ]]; then
fi

function sourceEnvFile() { #envFile
envFile="$1"
local envFile="$1"
if [ -f "$envFile" ]; then
echo -e "${GREEN}${NC} $(basename "$envFile")"
# shellcheck source=SCRIPTDIR/../.env.devnet
Expand All @@ -32,7 +32,7 @@ function sourceEnvFile() { #envFile
}

envFile="$SCRIPT_DIR/../.env.${deployment}"
sourceEnvFile "$envFile"
sourceEnvFile "$envFile.public"
sourceEnvFile "$envFile"

eval "$commands"
1 change: 0 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"react-use": "^17.4.3",
"siwe": "^2.3.1",
"styled-components": "^5.3.11",
"vanilla-jsoneditor": "^0.21.4",
"viem": "^2.1.0",
"wagmi": "^2.12.8"
}
Expand Down
4 changes: 2 additions & 2 deletions web/scripts/runEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if [[ ! " ${valid_deployments[*]} " =~ ${deployment} ]]; then
fi

function sourceEnvFile() { #envFile
envFile="$1"
local envFile="$1"
if [ -f "$envFile" ]; then
echo -e "${GREEN}${NC} $(basename "$envFile")"
# shellcheck source=SCRIPTDIR/../.env.devnet
Expand All @@ -32,7 +32,7 @@ function sourceEnvFile() { #envFile
}

envFile="$SCRIPT_DIR/../.env.${deployment}"
sourceEnvFile "$envFile"
sourceEnvFile "$envFile.public"
sourceEnvFile "$envFile"

eval "$commands"
9 changes: 0 additions & 9 deletions web/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const Home = lazy(() => import("./pages/Home"));
const Cases = lazy(() => import("./pages/Cases"));
const Dashboard = lazy(() => import("./pages/Dashboard"));
const Courts = lazy(() => import("./pages/Courts"));
const DisputeTemplateView = lazy(() => import("./pages/DisputeTemplateView"));
const DisputeResolver = lazy(() => import("./pages/Resolver"));
const GetPnk = lazy(() => import("./pages/GetPnk"));
import Web3Provider from "context/Web3Provider";
Expand Down Expand Up @@ -65,14 +64,6 @@ const App: React.FC = () => {
</Suspense>
}
/>
<Route
path="dispute-template"
element={
<Suspense fallback={<Loader width={"48px"} height={"48px"} />}>
<DisputeTemplateView />
</Suspense>
}
/>
<Route
path="resolver/*"
element={
Expand Down
64 changes: 0 additions & 64 deletions web/src/components/JSONEditor.tsx

This file was deleted.

17 changes: 1 addition & 16 deletions web/src/layout/Header/navbar/Explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ const StyledLink = styled(Link)<{ isActive: boolean }>`
)};
`;

const HiddenLink = styled(StyledLink)<{ isActive: boolean }>`
color: ${({ isActive, theme }) => (isActive ? theme.primaryText : "transparent")};
`;

const links = [
{ to: "/", text: "Home" },
{ to: "/cases/display/1/desc/all", text: "Cases" },
Expand All @@ -65,7 +61,7 @@ const links = [

const Explore: React.FC = () => {
const location = useLocation();
const { isOpen, toggleIsOpen } = useOpenContext();
const { toggleIsOpen } = useOpenContext();

return (
<Container>
Expand All @@ -81,17 +77,6 @@ const Explore: React.FC = () => {
</StyledLink>
</LinkContainer>
))}
{!isOpen && (
<LinkContainer>
<HiddenLink
to="/dispute-template"
onClick={toggleIsOpen}
isActive={location.pathname.startsWith("/dispute-template")}
>
Dev
</HiddenLink>
</LinkContainer>
)}
</Container>
);
};
Expand Down
131 changes: 0 additions & 131 deletions web/src/pages/DisputeTemplateView/FetchDisputeRequestInput.tsx

This file was deleted.

73 changes: 0 additions & 73 deletions web/src/pages/DisputeTemplateView/FetchFromIdInput.tsx

This file was deleted.

Loading

0 comments on commit f07ae54

Please sign in to comment.