Skip to content

Commit

Permalink
edit some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ElyasMehraein committed Apr 29, 2024
1 parent bf6f26d commit 293a375
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/modules/Guild.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useEffect } from 'react';

const filter = createFilterOptions();

export default function Guild({ updateGuildname, distinctGuilds, user }) {
export default function Guild({ updateGuildname, distinctGuilds, user,TextFieldText }) {
const primeJobguildname = user?.businesses.find((business) => business._id === user.primeJob)?.guildname


Expand Down Expand Up @@ -65,7 +65,7 @@ export default function Guild({ updateGuildname, distinctGuilds, user }) {
fullWidth
renderInput={(params) => (

<TextField {...params} label="انتخاب صنف" />
<TextField {...params} label={TextFieldText} />
)}
/>

Expand Down
6 changes: 3 additions & 3 deletions components/templates/createBusiness/CreateBusiness.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ export default function createBusiness({ distinctGuilds }) {
my: 3
}}
display="flex" flexDirection="column">
<Typography sx={{fontSize:12}} >یک نام برای کسب و کار خودانتخاب کنید</Typography>
<Typography sx={{fontSize:12}} >یک ID لاتین برای کسب و کار خود انتخاب کنید</Typography>
<TextField
required
size='small'
error={snackbarError}
sx={{ my: 3 }}
placeholder='حداکثر 30 کارکتر' variant="outlined"
label="نام کسب و کار"
label="برند کسب و کار شما"
onChange={(e) => { setSnackbarError(false); setBusinessName(e.target.value) }}
/>
<Typography sx={{ py: 1, textAlign: "center" ,fontSize:12 }}>{selectGuild}</Typography>

<Guild updateGuildname={updateGuildname} distinctGuilds={distinctGuilds} snackbarError={snackbarError} />
<Guild updateGuildname={updateGuildname} distinctGuilds={distinctGuilds} snackbarError={snackbarError} TextFieldText={"صنف شما"} />
<Button sx={buttonSx} onClick={() => createThisBusiness(businessName, guildname)} variant="contained">
ایجاد کسب و کار
</Button>
Expand Down
2 changes: 1 addition & 1 deletion components/templates/index/Requests/CreateRequest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default function CreateRequest({ fabHandler, user, distinctGuilds }) {
<Typography sx={{ my: 5, fontSize: '16px', fontWeight: "bold" }} variant="body1" color="text.primary">
ایجاد درخواست جدید
</Typography>
<Guild updateGuildname={updateGuildname} distinctGuilds={distinctGuilds} />
<Guild updateGuildname={updateGuildname} distinctGuilds={distinctGuilds} TextFieldText={"صنف تامین کننده تقاضای شما"} />
<TextField
id="requestTitle"
label="عنوان درخواست"
Expand Down

0 comments on commit 293a375

Please sign in to comment.