This file contains hidden or 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
"use client"; | |
import { useState, useEffect, useRef } from "react"; | |
import css from "./ChildStatusSelect.module.css"; | |
import { useAuthStore } from "@/lib/store/authStore"; | |
interface ChildStatusSelectProps { | |
action?: (formData: FormData) => Promise<void>; | |
initialValue?: string; // значение с сервера | |
} |
This file contains hidden or 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
"use client"; | |
import { useState, useEffect } from "react"; | |
import css from "./ChildStatusSelect.module.css"; | |
import { useAuthStore } from "@/lib/store/authStore"; | |
interface ChildStatusSelectProps { | |
action?: (formData: FormData) => Promise<void>; | |
} | |
export default function ChildStatusSelect({ action }: ChildStatusSelectProps) { |
This file contains hidden or 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
import styles from "./SearchBar.module.css"; | |
import { toast } from "react-hot-toast"; | |
interface SearchBarProps { | |
onSearch: (value: string) => void; | |
} | |
export default function SearchBar({ onSearch }: SearchBarProps) { | |
function onHandleSearch (formData: FormData) { | |
const querySearch = formData.get("query") as string; |
This file contains hidden or 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
import { defineConfig } from 'vite'; | |
import react from '@vitejs/plugin-react-swc'; | |
// https://vite.dev/config/ | |
export default defineConfig({ | |
plugins: [react()], | |
base: '/my-react-practice/', //your repository path | |
build: { | |
sourcemap: true, | |
}, |
This file contains hidden or 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
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: [ main ] # или master, если используете master ветку | |
pull_request: | |
branches: [ main ] | |
# Права для деплоя на GitHub Pages | |
permissions: |
This file contains hidden or 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
{ | |
"semi": true, | |
"trailingComma": "es5", | |
"singleQuote": true, | |
"printWidth": 80, | |
"tabWidth": 2, | |
"useTabs": false, | |
"bracketSpacing": true, | |
"bracketSameLine": false, | |
"arrowParens": "avoid", |