Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update snapshots
Browse files Browse the repository at this point in the history
tarrencev committed Jan 15, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9ed835e commit 3d2ec83
Showing 21 changed files with 47 additions and 279 deletions.
5 changes: 1 addition & 4 deletions packages/keychain/.storybook/provider.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@ import { controllerConfigs } from "@cartridge/presets";
import { mainnet } from "@starknet-react/chains";
import { StarknetConfig, publicProvider, voyager } from "@starknet-react/core";
import { useThemeEffect } from "@cartridge/ui-next";
import { ChakraProvider } from "@chakra-ui/react";
import { BrowserRouter } from "react-router-dom";

import { ConnectionContext } from "../src/components/provider/connection";
@@ -13,7 +12,6 @@ import {
ControllerThemeContext,
VerifiableControllerTheme,
} from "../src/context/theme";
import { useChakraTheme } from "../src/hooks/theme";

export function Provider({
children,
@@ -56,11 +54,10 @@ function ControllerThemeProvider({
theme,
}: PropsWithChildren<{ theme: VerifiableControllerTheme }>) {
useThemeEffect({ theme, assetUrl: "" });
const chakraTheme = useChakraTheme({ ...theme });

return (
<ControllerThemeContext.Provider value={{ ...theme }}>
<ChakraProvider theme={chakraTheme}>{children}</ChakraProvider>
{children}
</ControllerThemeContext.Provider>
);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions packages/keychain/index.html
Original file line number Diff line number Diff line change
@@ -33,22 +33,6 @@
content="{CartridgeTheme.semanticTokens.colors.brand}"
/>
<script src="/noflash.js"></script>

<script>
// This script sets the initial color mode
(function () {
function setColorMode() {
const colorMode = localStorage.getItem("chakra-ui-color-mode");
if (colorMode) {
document.documentElement.style.setProperty(
"--chakra-ui-color-mode",
colorMode,
);
}
}
setColorMode();
})();
</script>
</head>
<body class="h-screen bg-background text-foreground overflow-y-auto">
<div id="root"></div>
3 changes: 1 addition & 2 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"storybook": "storybook dev -p 6001",
"storybook:build": "storybook build",
"storybook:serve": "pnpm storybook:build --quiet && pnpm http-server -c-1 storybook-static --port 6006 --silent",
"test-storybook": "test-storybook",
"test-storybook": "test-storybook --testTimeout=60000",
"test:storybook": "start-server-and-test 'pnpm storybook:serve' 6006 'pnpm test-storybook'"
},
"dependencies": {
@@ -94,7 +94,6 @@
"vitest": "^2.1.8"
},
"peerDependencies": {
"@chakra-ui/react": "^2.8.1",
"@starknet-react/chains": "^3.0.0",
"@starknet-react/core": "^3.0.2",
"starknet": "^6.11.0"
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ export function Banner({
switch (variant) {
case "expanded":
return (
<div className="flex flex-col w-full h-[136px] bg-[image:var(--theme-cover-url)] bg-cover bg-center relative mb-16 before:content-[''] before:absolute before:inset-0 before:bg-gradient-to-b before:from-transparent before:to-[var(--chakra-colors-solid-bg)] before:pointer-events-none">
<div className="flex flex-col w-full h-[136px] bg-[image:var(--theme-cover-url)] bg-cover bg-center relative mb-16 before:content-[''] before:absolute before:inset-0 before:bg-gradient-to-b before:from-transparent before:to-background before:pointer-events-none">
<div className="p-4 flex items-center gap-4 absolute -bottom-10 left-1">
<HeaderIcon variant={variant} Icon={Icon} icon={icon} />
<Headline
54 changes: 0 additions & 54 deletions packages/ui/package.json

This file was deleted.

246 changes: 44 additions & 202 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 3d2ec83

Please sign in to comment.