Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrencev committed Jan 15, 2025
1 parent 9ed835e commit 3ecf880
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 280 deletions.
5 changes: 1 addition & 4 deletions packages/keychain/.storybook/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -13,7 +12,6 @@ import {
ControllerThemeContext,
VerifiableControllerTheme,
} from "../src/context/theme";
import { useChakraTheme } from "../src/hooks/theme";

export function Provider({
children,
Expand Down Expand Up @@ -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.
16 changes: 0 additions & 16 deletions packages/keychain/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 1 addition & 2 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/src/components/SignMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function SignMessage({
<div className="capitalize text-muted-foreground">
{key}:
</div>
<div className="overflow-x-auto">
<div className="break-words break-all">
{value as string}
</div>
</CardListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
54 changes: 0 additions & 54 deletions packages/ui/package.json

This file was deleted.

Loading

0 comments on commit 3ecf880

Please sign in to comment.