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

Removal of unused court DisputeTemplateView, already replaced by the Dev Tools #1712

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
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
Loading