-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dedupe MysticalBackgroundV3 & LoginBackground
- Loading branch information
Showing
9 changed files
with
26 additions
and
205 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
apps/extension/src/ui/apps/popup/components/LoginBackground.tsx
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useMemo } from "react" | ||
import { MYSTICAL_PHYSICS_V3, MysticalBackground, MysticalPhysicsV3 } from "talisman-ui" | ||
|
||
const BG_CONFIG: MysticalPhysicsV3 = { | ||
...MYSTICAL_PHYSICS_V3, | ||
artifacts: 4, | ||
radiusMax: 0.7, | ||
ellipsisRatio: 0.4, | ||
} | ||
|
||
export type LoginBackgroundProps = { | ||
className?: string | ||
colors: [string, string] | ||
} | ||
export const LoginBackground = ({ className, colors }: LoginBackgroundProps) => { | ||
const config = useMemo(() => ({ ...BG_CONFIG, colors }), [colors]) | ||
|
||
return <MysticalBackground className={className} config={config} /> | ||
} |
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
74 changes: 0 additions & 74 deletions
74
packages/talisman-ui/src/components/LoginBackground/LoginBackground.tsx
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
packages/talisman-ui/src/components/LoginBackground/LoginPhysics.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
92 changes: 0 additions & 92 deletions
92
packages/talisman-ui/src/components/LoginBackground/useLoginArtifact.ts
This file was deleted.
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