File tree Expand file tree Collapse file tree
src/components/allowed-users/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import styled from 'styled-components' ;
22import { FONT_SIZE , FONT_WEIGHT , media } from '@app/styles/themes/constants' ;
3+ import { Card } from 'antd' ;
34
45export const Container = styled . div `
56 padding: 1.5rem;
@@ -64,4 +65,9 @@ export const ChangesIndicator = styled.span`
6465 color: var(--warning-color);
6566 font-size: 14px;
6667 font-style: italic;
68+ ` ;
69+ export const ContentCard = styled ( Card ) `
70+ background: var(--secondary-background-color);
71+ border-color: var(--border-base-color);
72+
6773` ;
Original file line number Diff line number Diff line change @@ -155,40 +155,40 @@ export const AllowedUsersLayout: React.FC = () => {
155155
156156 < Row gutter = { [ 24 , 24 ] } >
157157 < Col span = { 24 } >
158- < Card title = "Relay Mode" loading = { loading } >
158+ < S . ContentCard title = "Relay Mode" loading = { loading } >
159159 < ModeSelector
160160 currentMode = { currentMode }
161161 onModeChange = { handleModeChange }
162162 disabled = { loading || saving }
163163 />
164- </ Card >
164+ </ S . ContentCard >
165165 </ Col >
166166
167167 < Col span = { 24 } >
168- < Card title = "Global Permissions" loading = { loading } >
168+ < S . ContentCard title = "Global Permissions" loading = { loading } >
169169 < PermissionsConfig
170170 settings = { localSettings }
171171 onSettingsChange = { handleSettingsUpdate }
172172 disabled = { loading || saving }
173173 />
174- </ Card >
174+ </ S . ContentCard >
175175 </ Col >
176176
177177 { showRelayOwnerConfig && (
178178 < Col span = { 24 } >
179- < Card title = "Relay Owner Configuration" loading = { loading } >
179+ < S . ContentCard title = "Relay Owner Configuration" loading = { loading } >
180180 < RelayOwnerConfig
181181 settings = { localSettings }
182182 onSettingsChange = { handleSettingsUpdate }
183183 disabled = { loading || saving }
184184 />
185- </ Card >
185+ </ S . ContentCard >
186186 </ Col >
187187 ) }
188188
189189 { showTiers && (
190190 < Col span = { 24 } >
191- < Card title = {
191+ < S . ContentCard title = {
192192 currentMode === 'public' ? 'Free Tier Configuration' :
193193 currentMode === 'only-me' ? 'Only Me Tiers' :
194194 'Subscription Tiers'
@@ -199,18 +199,18 @@ export const AllowedUsersLayout: React.FC = () => {
199199 onSettingsChange = { handleSettingsUpdate }
200200 disabled = { loading || saving }
201201 />
202- </ Card >
202+ </ S . ContentCard >
203203 </ Col >
204204 ) }
205205
206206 { showNpubManagement && (
207207 < Col span = { 24 } >
208- < Card title = "Allowed Users Management" >
208+ < S . ContentCard title = "Allowed Users Management" >
209209 < NPubManagement
210210 settings = { localSettings }
211211 mode = { currentMode }
212212 />
213- </ Card >
213+ </ S . ContentCard >
214214 </ Col >
215215 ) }
216216
You can’t perform that action at this time.
0 commit comments