Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ import {
toWalletAddressUrl
} from '@shared/utils'

export const ToolsWalletAddress = () => {
interface ToolsWalletAddressProps {
toolName: 'drawer banner' | 'payment widget'
}

export const ToolsWalletAddress = ({ toolName }: ToolsWalletAddressProps) => {
const snap = useSnapshot(toolState)
const uiActions = useUIActions()
const [error, setError] = useState<ElementErrors>()
Expand Down Expand Up @@ -126,8 +130,8 @@ export const ToolsWalletAddress = () => {
if (!snap.hasRemoteConfigs) {
return (
<p className="w-full text-style-small-standard !text-text-success">
There are no custom edits for the drawer banner correlated to this
wallet address but you can start customizing when you want.
There are no custom edits for the {toolName} correlated to this wallet
address but you can start customizing when you want.
</p>
)
}
Expand All @@ -136,7 +140,7 @@ export const ToolsWalletAddress = () => {
<p className="w-full text-style-small-standard !text-text-success">
We&apos;ve loaded your configuration.
<br />
Feel free to keep customizing your banner to fit your style.
Feel free to keep customizing your {toolName} to fit your style.
</p>
)
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default function Banner() {
label="Connect"
status={snap.walletConnectStep}
/>
<ToolsWalletAddress />
<ToolsWalletAddress toolName="drawer banner" />
</div>

<div className="flex flex-col xl:flex-row gap-2xl">
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/routes/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default function Widget() {
label="Connect"
status={snap.walletConnectStep}
/>
<ToolsWalletAddress />
<ToolsWalletAddress toolName="payment widget" />
</div>

<div className="flex flex-col xl:flex-row gap-2xl">
Expand Down