-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sunset chakra components from layout (#1267)
* Replace layout wrapper with TW classes * Replace layout footer with TW classes * Remove chakra components from layout Content * Remove layout context * Fix footer height * Fix content height * Remove chakra components from layout header * Prevent client-side cross-site scripting via user defined image src * Add snapshot updates * Fix topbar padding * Float network right even without close/back button * Update snapshots --------- Co-authored-by: Tarrence van As <[email protected]>
- Loading branch information
1 parent
168bd74
commit cec808a
Showing
45 changed files
with
224 additions
and
393 deletions.
There are no files selected for viewing
Binary file modified
BIN
-883 Bytes
(96%)
...chain/__image_snapshots__/components-connect-authenticate--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+33 Bytes
(100%)
...ge_snapshots__/components-connect-create-createcontroller--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+59 Bytes
(100%)
...s__/components-connect-create-createcontroller--with-generic-error-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+33 Bytes
(100%)
...hots__/components-connect-create-createcontroller--with-light-mode-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.17 KB
(99%)
...snapshots__/components-connect-create-createcontroller--with-theme-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+179 Bytes
(100%)
...s__/components-connect-create-createcontroller--with-timeout-error-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+107 Bytes
(100%)
.../components-connect-create-createcontroller--with-validation-error-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.5 KB
(120%)
...hain/__image_snapshots__/components-connect-createsession--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+284 Bytes
(100%)
.../__image_snapshots__/components-connect-createsession--with-preset-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-713 Bytes
(96%)
...s/keychain/__image_snapshots__/components-connect-upgrade--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-985 Bytes
(94%)
.../keychain/__image_snapshots__/components-deploycontroller--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-977 Bytes
(96%)
packages/keychain/__image_snapshots__/components-errorpage--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1008 Bytes
(96%)
...ages/keychain/__image_snapshots__/components-errorpage--long-error-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.8 KB
(110%)
packages/keychain/__image_snapshots__/components-failure--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-944 Bytes
(94%)
packages/keychain/__image_snapshots__/components-funding--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-101 Bytes
(100%)
...eychain/__image_snapshots__/components-funding-depositeth--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+39 Bytes
(100%)
...in/__image_snapshots__/components-funding-purchasecredits--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.2 KB
(82%)
...ge_snapshots__/components-layout-container-header-banner--expanded-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.59 KB
...s__/components-layout-container-header-banner--icon-component-prop-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.59 KB
...ots__/components-layout-container-header-banner--icon-element-prop-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.59 KB
...shots__/components-layout-container-header-banner--very-long-title-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-206 Bytes
(97%)
packages/keychain/__image_snapshots__/components-pending--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.6 KB
(170%)
packages/keychain/__image_snapshots__/components-settings--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-924 Bytes
(96%)
...keychain/__image_snapshots__/components-settings-delegate--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-520 Bytes
(98%)
...keychain/__image_snapshots__/components-settings-recovery--default-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-40 Bytes
(100%)
packages/keychain/__image_snapshots__/components-signmessage--default-chromium.png
Oops, something went wrong.
Binary file modified
BIN
-721 Bytes
(96%)
...age_snapshots__/components-transaction-confirmtransaction--default-chromium.png
Oops, something went wrong.
Binary file modified
BIN
-364 Bytes
(99%)
..._snapshots__/components-transaction-confirmtransaction--with-theme-chromium.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import { StackProps, VStack } from "@chakra-ui/react"; | ||
import { useLayout } from "./container"; | ||
|
||
export function Content({ children, ...stackProps }: StackProps) { | ||
const { footer } = useLayout(); | ||
import { cn } from "@cartridge/ui-next"; | ||
import { PropsWithChildren } from "react"; | ||
|
||
export function Content({ | ||
children, | ||
className, | ||
}: PropsWithChildren & { className?: string }) { | ||
return ( | ||
<VStack w="full" px={4} pb={footer.height} align="stretch" {...stackProps}> | ||
<div | ||
className={cn( | ||
"w-full px-4 pb-[var(--footer-height)] flex flex-col items-stretch gap-2", | ||
className, | ||
)} | ||
> | ||
{children} | ||
</VStack> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.