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
"use client"; | |
import { Button } from "@/components/ui/button"; | |
import { | |
Form, | |
FormControl, | |
FormField, | |
FormItem, | |
FormLabel, | |
FormMessage, | |
} from "@/components/ui/form"; //shadcn ui folder |
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
DELIMITER // | |
CREATE FUNCTION SlugifyTitle(title VARCHAR(255), sep CHAR(1)) | |
RETURNS VARCHAR(255) | |
BEGIN | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'š', 's'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'Đ', 'Dj'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'đ', 'dj'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'Ž', 'Z'); | |
SET title = REPLACE(CONVERT(title USING utf8mb4),'ž', 'z'); |
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
import useScrollRestoration from "utils/hooks/useScrollRestoration"; | |
const App = ({ Component, pageProps, router }) => { | |
useScrollRestoration(router); | |
return <Component {...pageProps} />; | |
}; | |
export default App; |