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
17 changes: 17 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ h1 {
display: contents;
}

.radio-options {
display: flex;
gap: 1rem;
}

.new-store-redirect {
grid-column-start: 2;
padding: 0;
Expand Down Expand Up @@ -418,6 +423,12 @@ h1 {
margin: 1rem 0;
}

.big-chain-group label {
display: flex;
align-items: center;
gap: 0.3rem;
}

.items-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
Expand Down Expand Up @@ -955,5 +966,11 @@ h1 {
margin: 0 auto;
text-align: center;
}

.big-chain-group {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
}

37 changes: 27 additions & 10 deletions src/pages/CreateNewStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,33 @@ const CreateNewStore: React.FC = () => {
))}

<div className="big-chain-group">
<label htmlFor="isBigChain">Is this a big chain store?<span className="required-form-item">*</span></label>
<input
type="checkbox"
id="isBigChain"
name="isBigChain"
checked={inputs.isBigChain}
onChange={handleChange}
autoComplete="off"
required
/>
<span>Is this a big chain store?<span className="required-form-item">*</span></span>
<div className="radio-options">
<label htmlFor="isBigChainYes">
<input
type="radio"
id="isBigChainYes"
name="isBigChain"
value="true"
checked={inputs.isBigChain === true}
onChange={() => setInputs(prev => ({ ...prev, isBigChain: true }))}
autoComplete="off"
required
/> Yes
</label>
<label htmlFor="isBigChainNo">
<input
type="radio"
id="isBigChainNo"
name="isBigChain"
value="false"
checked={inputs.isBigChain === false}
onChange={() => setInputs(prev => ({ ...prev, isBigChain: false }))}
autoComplete="off"
required
/> No
</label>
</div>
</div>

<label htmlFor="storeLogoUrl">Store Logo Url<span className="required-form-item">*</span></label>
Expand Down