Skip to content

Commit

Permalink
fix(website): fix+improve data use terms history link (#1949)
Browse files Browse the repository at this point in the history
chaoran-chen authored May 19, 2024
1 parent 1b1aaa3 commit baa06ea
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@ import { DateTime, FixedOffsetZone } from 'luxon';
import { type FC, useRef } from 'react';

import { type DataUseTermsHistoryEntry, restrictedDataUseTermsType } from '../../types/backend.ts';
import DataUseTermsHistoryIcon from '~icons/mdi/clipboard-text-history-outline';

export type DataUseTermsHistoryProps = {
dataUseTermsHistory: DataUseTermsHistoryEntry[];
@@ -23,11 +22,11 @@ export const DataUseTermsHistoryModal: FC<DataUseTermsHistoryProps> = ({ dataUse
<DataUseTermsHistoryDialog dataUseTermsHistory={dataUseTermsHistory} />
</dialog>

<div>
<button className='icon-button' onClick={handleOpenHistoryDialog}>
<DataUseTermsHistoryIcon />
<span>
<button className='underline' onClick={handleOpenHistoryDialog}>
(history)
</button>
</div>
</span>
</>
);
};

0 comments on commit baa06ea

Please sign in to comment.