+ {/*
Pattern
-
+
Platform
diff --git a/src/components/Themes/BackgroundTheme.js b/src/components/Themes/BackgroundTheme.js
index 70dca69..597ffbf 100644
--- a/src/components/Themes/BackgroundTheme.js
+++ b/src/components/Themes/BackgroundTheme.js
@@ -72,7 +72,7 @@ const BackgroundTheme = ({ config }) => {
:
-
+
diff --git a/src/components/Themes/StylishTheme.js b/src/components/Themes/StylishTheme.js
index 56615bf..3cc81ff 100644
--- a/src/components/Themes/StylishTheme.js
+++ b/src/components/Themes/StylishTheme.js
@@ -1,68 +1,11 @@
-import React, { useState, useEffect, useContext } from 'react';
-import unsplash from "../../utils/unsplashConfig";
+import React, { useContext } from 'react';
import { ImgContext } from '../../utils/ImgContext';
+import UnsplashSearch from '../UnsplashSearch';
const StylishTheme = ({ config }) => {
const { title, author, font, icon, customIcon, bgColor } = config;
-
- // const [image, setImage] = useState({})
-
- const [imageList, setImageList] = useState([]);
- const [searchText, setSearchText] = useState('dev');
-
const { unsplashImage, setUnsplashImage } = useContext(ImgContext);
- const searchImages = () => {
-
- unsplash.search
- .getPhotos({
- query: searchText,
- page: 1,
- per_page: 30,
- // orientation:'portrait'
-
-
- })
- .then(response => {
- // console.log(response.response.results);
- setImageList(response.response.results)
- });
- }
-
- useEffect(() => {
-
- unsplash.search
- .getPhotos({
- query: 'setup',
- page: 1,
- per_page: 25
-
- })
- .then(response => {
- // console.log(response.response.results);
- setImageList(response.response.results)
- });
- }, [])
-
- const selectImage = (image) => {
- setUnsplashImage({
- url: image.urls.regular,
- name: image.user.name,
- avatar: image.user.profile_image.small,
- profile: `${image.user.links.html}?utm_source=https://coverview.vercel.app&utm_medium=referral`,
- downloadLink: image.links.download_location
-
- })
-
-
- }
-
- const handleSearchSubmit = (e) => {
- e.preventDefault();
- searchImages(searchText);
-
- }
-
return (
@@ -94,18 +37,15 @@ const StylishTheme = ({ config }) => {