feat: update regional list path
This commit is contained in:
parent
d9475cc0a9
commit
6fc2dd70af
|
|
@ -713,6 +713,7 @@ export default function FilterPage() {
|
|||
startDateString={startDateString}
|
||||
endDateString={endDateString}
|
||||
monthYearFilter={monthYearFilter}
|
||||
isRegionalCall={true}
|
||||
/>
|
||||
<FilterVideoComponent
|
||||
categoryFilter={categoryFilter}
|
||||
|
|
@ -720,6 +721,7 @@ export default function FilterPage() {
|
|||
startDateString={startDateString}
|
||||
endDateString={endDateString}
|
||||
monthYearFilter={monthYearFilter}
|
||||
isRegionalCall={true}
|
||||
/>
|
||||
<FilterDocumentComponent
|
||||
categoryFilter={categoryFilter}
|
||||
|
|
@ -727,6 +729,7 @@ export default function FilterPage() {
|
|||
startDateString={startDateString}
|
||||
endDateString={endDateString}
|
||||
monthYearFilter={monthYearFilter}
|
||||
isRegionalCall={true}
|
||||
/>
|
||||
<FilterAudioComponent
|
||||
categoryFilter={categoryFilter}
|
||||
|
|
@ -734,6 +737,7 @@ export default function FilterPage() {
|
|||
startDateString={startDateString}
|
||||
endDateString={endDateString}
|
||||
monthYearFilter={monthYearFilter}
|
||||
isRegionalCall={true}
|
||||
/>
|
||||
<FilterIndeksComponent
|
||||
categoryFilter={categoryFilter}
|
||||
|
|
@ -741,6 +745,7 @@ export default function FilterPage() {
|
|||
startDateString={startDateString}
|
||||
endDateString={endDateString}
|
||||
monthYearFilter={monthYearFilter}
|
||||
isRegionalCall={true}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export default function FilterAudioComponent(props: {
|
|||
startDateString?: string;
|
||||
endDateString?: string;
|
||||
monthYearFilter?: any;
|
||||
isRegionalCall?: any;
|
||||
}) {
|
||||
const {
|
||||
categoryFilter,
|
||||
|
|
@ -29,6 +30,7 @@ export default function FilterAudioComponent(props: {
|
|||
startDateString,
|
||||
endDateString,
|
||||
monthYearFilter,
|
||||
isRegionalCall,
|
||||
} = props;
|
||||
const [newContent, setNewContent] = useState<any>();
|
||||
const asPath = usePathname();
|
||||
|
|
@ -42,7 +44,7 @@ export default function FilterAudioComponent(props: {
|
|||
const categorie = searchParams?.get("category");
|
||||
const group = searchParams?.get("group");
|
||||
const [totalContent, setTotalContent] = useState();
|
||||
const isRegional = group || asPath.includes("/polda/");
|
||||
const isRegional = isRegionalCall || group || asPath.includes("/polda/");
|
||||
const searchType = isRegional ? "regional" : "filter";
|
||||
const router = useRouter();
|
||||
const poldaName = params?.polda_name;
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export default function FilterDocumentComponent(props: {
|
|||
startDateString?: string;
|
||||
endDateString?: string;
|
||||
monthYearFilter?: any;
|
||||
isRegionalCall?: any;
|
||||
}) {
|
||||
const {
|
||||
categoryFilter,
|
||||
|
|
@ -29,6 +30,7 @@ export default function FilterDocumentComponent(props: {
|
|||
startDateString,
|
||||
endDateString,
|
||||
monthYearFilter,
|
||||
isRegionalCall,
|
||||
} = props;
|
||||
const [newContent, setNewContent] = useState<any>();
|
||||
const asPath = usePathname();
|
||||
|
|
@ -42,7 +44,7 @@ export default function FilterDocumentComponent(props: {
|
|||
const categorie = searchParams?.get("category");
|
||||
const group = searchParams?.get("group");
|
||||
const [totalContent, setTotalContent] = useState();
|
||||
const isRegional = group || asPath.includes("/polda/");
|
||||
const isRegional = isRegionalCall || group || asPath.includes("/polda/");
|
||||
const searchType = isRegional ? "regional" : "filter";
|
||||
|
||||
const router = useRouter();
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ export default function FilterImageComponent(props: {
|
|||
startDateString?: string;
|
||||
endDateString?: string;
|
||||
monthYearFilter?: any;
|
||||
isRegionalCall?: any;
|
||||
}) {
|
||||
const {
|
||||
categoryFilter,
|
||||
|
|
@ -28,6 +29,7 @@ export default function FilterImageComponent(props: {
|
|||
startDateString,
|
||||
endDateString,
|
||||
monthYearFilter,
|
||||
isRegionalCall,
|
||||
} = props;
|
||||
const router = useRouter();
|
||||
const [newContent, setNewContent] = useState<any>();
|
||||
|
|
@ -43,7 +45,7 @@ export default function FilterImageComponent(props: {
|
|||
const [totalContent, setTotalContent] = useState();
|
||||
const poldaName = params?.polda_name;
|
||||
const satkerName = params?.satker_name;
|
||||
const isRegional = group || asPath.includes("/polda/");
|
||||
const isRegional = isRegionalCall || group || asPath.includes("/polda/");
|
||||
const searchType = isRegional ? "regional" : "filter";
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ export default function FilterVideoComponent(props: {
|
|||
startDateString?: string;
|
||||
endDateString?: string;
|
||||
monthYearFilter?: any;
|
||||
isRegionalCall?: any;
|
||||
}) {
|
||||
const {
|
||||
categoryFilter,
|
||||
|
|
@ -30,6 +31,7 @@ export default function FilterVideoComponent(props: {
|
|||
startDateString,
|
||||
endDateString,
|
||||
monthYearFilter,
|
||||
isRegionalCall,
|
||||
} = props;
|
||||
const [newContent, setNewContent] = useState<any>();
|
||||
const asPath = usePathname();
|
||||
|
|
@ -43,8 +45,7 @@ export default function FilterVideoComponent(props: {
|
|||
const categorie = searchParams?.get("category");
|
||||
const group = searchParams?.get("group");
|
||||
const [totalContent, setTotalContent] = useState();
|
||||
|
||||
const isRegional = group || asPath.includes("/polda/");
|
||||
const isRegional = isRegionalCall || group || asPath.includes("/polda/");
|
||||
const searchType = isRegional ? "regional" : "filter";
|
||||
const router = useRouter();
|
||||
const poldaName = params?.polda_name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue