-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Intosoft/feat/web
feat: image upload
- Loading branch information
Showing
13 changed files
with
426 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import styled from "styled-components"; | ||
|
||
import { CustomizationSectionProps } from "./type"; | ||
|
||
const Input = styled.input` | ||
height: 40px; | ||
width: 100%; | ||
border: 1px solid #d0d7df; | ||
border-radius: 4px; | ||
padding: 4px 10px; | ||
outline: none; | ||
&:focus { | ||
border: 1px solid #a2e344; | ||
} | ||
`; | ||
|
||
const Label = styled.p` | ||
margin: 4px 2px; | ||
`; | ||
|
||
export const Content = ({ | ||
setQrConfig, | ||
qrConfig, | ||
}: CustomizationSectionProps) => { | ||
return ( | ||
<> | ||
<Label>Enter your URL</Label> | ||
<Input | ||
value={qrConfig.value} | ||
onChange={({ target: { value } }) => | ||
setQrConfig({ | ||
...qrConfig, | ||
value, | ||
}) | ||
} | ||
/> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.