mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 04:46:18 -05:00
Reformatting Channel page to display buttons better on mobile. Creating BackButton to consolidate functionality. Expanding search input on mobile.
This commit is contained in:
parent
759560dc6f
commit
9f52f41d56
6 changed files with 235 additions and 225 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import React, {useContext, useEffect, useState} from "react";
|
||||
import {Card, Container, IconGroup, Image, Input, Modal, Pagination, Responsive} from 'semantic-ui-react';
|
||||
import {Link, NavLink} from "react-router-dom";
|
||||
import {Link, NavLink, useNavigate} from "react-router-dom";
|
||||
import Message from "semantic-ui-react/dist/commonjs/collections/Message";
|
||||
import {useDirectories, useDownloaders, useHotspot, useSettings, useThrottle} from "../hooks/customHooks";
|
||||
import {StatusContext, ThemeContext} from "../contexts/contexts";
|
||||
|
|
@ -344,7 +344,7 @@ export function SearchInput({
|
|||
}
|
||||
|
||||
return <Form onSubmit={localOnSubmit} {...props}>
|
||||
<Input
|
||||
<Input fluid
|
||||
placeholder={placeholder}
|
||||
type='text'
|
||||
onChange={(e) => setValue(e.target.value)}
|
||||
|
|
@ -740,3 +740,8 @@ export function DirectoryInput({disabled, error, placeholder, setInput, value, r
|
|||
</datalist>
|
||||
</div>);
|
||||
}
|
||||
|
||||
export const BackButton = () => {
|
||||
const navigate = useNavigate();
|
||||
return <Button icon='arrow left' content='Back' onClick={() => navigate(-1)}/>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue