+
setNewKind(e.target.value)} placeholder="Enter new kind" />
{
if (newKind) {
- setSettings((prevSettings) => ({
- ...prevSettings,
- dynamicKinds: [...(prevSettings.dynamicKinds || []), newKind],
- }));
+ handleNewDynamicKind(newKind);
setNewKind('');
}
}}
@@ -1026,19 +1200,25 @@ const RelaySettingsPage: React.FC = () => {
handleSettingsChange('dynamicKinds', checkedValues as string[])}
>
- {(settings.dynamicKinds || []).map((kind) => (
+ {(storedDynamicKinds || []).map((kind) => (
-
+
{
isActive={true}
style={{ fontSize: '1.2rem', paddingRight: '.8rem', paddingLeft: '.8rem' }}
>
- {`kind`+kind}
+ {`kind` + kind}
removeDynamicKind(kind)}>
@@ -1172,6 +1352,7 @@ const RelaySettingsPage: React.FC = () => {
+
{t('buttons.saveSettings')}
diff --git a/src/pages/uiComponentsPages/UIComponentsPage.styles.ts b/src/pages/uiComponentsPages/UIComponentsPage.styles.ts
index 7ee6e08..7a36cf0 100644
--- a/src/pages/uiComponentsPages/UIComponentsPage.styles.ts
+++ b/src/pages/uiComponentsPages/UIComponentsPage.styles.ts
@@ -4,6 +4,7 @@ import { BaseCollapse } from '@app/components/common/BaseCollapse/BaseCollapse';
import { LAYOUT, media } from '@app/styles/themes/constants';
import { BaseCol } from '@app/components/common/BaseCol/BaseCol';
import { BaseSwitch } from '@app/components/common/BaseSwitch/BaseSwitch';
+import { InfoCircleOutlined } from '@ant-design/icons';
export const Card = styled(CommonCard)`
width: 100%;
margin-bottom: 1.25rem;
@@ -26,6 +27,46 @@ export const Card = styled(CommonCard)`
border: 1px solid var(--border-color);
}
`;
+export const InfoCircleOutlinedIcon = styled(InfoCircleOutlined)`
+ color: var(--text-light-color);
+ font-size: .75rem;
+ align-self: start;
+ padding-top .2rem;
+ padding-right: .5rem;
+ cursor: pointer;
+`;
+export const NewBucketContainer = styled.div`
+ padding: 1rem 0rem 0rem 0rem;
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+`;
+export const InfoCard = styled(CommonCard)`
+ width: 100%;
+ padding: 0.7rem 1.2rem;
+ .ant-card-head-title {
+ font-size: 1rem;
+ }
+ .ant-card-body {
+ flex-wrap: nowrap;
+
+ display: flex;
+ flex-direction: row;
+ gap: 0rem;
+ align-items: center;
+
+ padding: 0;
+ }
+ .ant-card-body:before {
+ display: none;
+ }
+ .ant-card-body:after {
+ display: none;
+ }
+ &.ant-card-bordered {
+ border: 1px solid var(--border-color);
+ }
+`;
export const InputsWrapper = styled.div`
width: 30rem;
@@ -133,3 +174,6 @@ export const LabelSpan = styled.span`
align-items: center; // Center align to match switch height
padding-right: 10px; // Optional padding for visual spacing
`;
+export const HeadingContainer = styled.div`
+ margin-bottom: 1.25rem;
+`;
diff --git a/src/styles/GlobalStyle.ts b/src/styles/GlobalStyle.ts
index 9f172cc..2b972d4 100644
--- a/src/styles/GlobalStyle.ts
+++ b/src/styles/GlobalStyle.ts
@@ -260,6 +260,7 @@ export default createGlobalStyle`
.checkboxHeader{
padding: 0rem 0 .5rem 0;
}
+
.grid-checkbox-group {
width: 100%;
display: grid;
@@ -281,7 +282,10 @@ export default createGlobalStyle`
.checkbox-container{
white-space: nowrap;
}
-
+ .dynamic-group{
+ padding-top: 1rem;
+ padding-bottom: 0rem;
+ }
.grid-checkbox-group.large-label {
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}