1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 09:40:10 +02:00

fix assets pro btn

This commit is contained in:
Kushagra Gour
2024-04-15 13:03:29 +05:30
parent f27894a0f5
commit f14f366b17
3 changed files with 9 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import { LoaderWithText } from './Loader';
import { Text } from './Text';
import { Icon } from './Icons';
const Assets = () => {
const Assets = ({ onProBtnClick }) => {
const [files, setFiles] = useState([]);
const [isFetchingFiles, setIsFetchingFiles] = useState(false);
const [searchTerm, setSearchTerm] = useState('');
@@ -161,7 +161,7 @@ const Assets = () => {
return (
<VStack align="stretch" gap={2}>
<p>Assets feature is available in PRO plan.</p>
<button class="btn btn--primary ">
<button class="btn btn--primary" onClick={onProBtnClick}>
<HStack gap={1} fullWidth justify="center">
Upgrade to <ProBadge />
</HStack>