mirror of
https://github.com/snowball-tools/snowballtools-base.git
synced 2024-11-17 16:29:19 +00:00
🔧 chore: change isDesktopView to isTabletView
This commit is contained in:
parent
226d02ea59
commit
028831f806
@ -24,8 +24,8 @@ const Id = () => {
|
||||
const client = useGQLClient();
|
||||
const location = useLocation();
|
||||
|
||||
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
|
||||
const buttonSize = isDesktopView ? {} : { size: 'sm' as const };
|
||||
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
|
||||
const buttonSize = isTabletView ? {} : { size: 'sm' as const };
|
||||
|
||||
const [project, setProject] = useState<ProjectType | null>(null);
|
||||
const [repoUrl, setRepoUrl] = useState('');
|
||||
|
@ -20,8 +20,8 @@ import { useMediaQuery } from 'usehooks-ts';
|
||||
const CreateWithTemplate = () => {
|
||||
const { orgSlug } = useParams();
|
||||
|
||||
const isDesktopView = useMediaQuery('(min-width: 960px)'); // lg:
|
||||
const stepsOrientation = isDesktopView ? 'vertical' : 'horizontal';
|
||||
const isTabletView = useMediaQuery('(min-width: 960px)'); // lg:
|
||||
const stepsOrientation = isTabletView ? 'vertical' : 'horizontal';
|
||||
|
||||
const stepperValues = [
|
||||
{
|
||||
|
@ -29,8 +29,8 @@ const CreateRepo = () => {
|
||||
|
||||
const { orgSlug } = useParams();
|
||||
|
||||
const isDesktopView = useMediaQuery('(min-width: 720px)'); // md:
|
||||
const buttonSize = isDesktopView ? { size: 'lg' as const } : {};
|
||||
const isTabletView = useMediaQuery('(min-width: 720px)'); // md:
|
||||
const buttonSize = isTabletView ? { size: 'lg' as const } : {};
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user